-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all user-facing web copy into localization files
- Loading branch information
1 parent
c60db1f
commit 26fe767
Showing
16 changed files
with
90 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<% if current_user %> | ||
<p>Logged in as <%= current_user.email %>. </p> | ||
<p>Your access token: | ||
<p><%= t :users_index_logged_in_message, username: current_user.username %></p> | ||
<p><%= t :users_index_access_token_label %> | ||
<br /><code><%= current_user.access_token.token %></code></p> | ||
<p><%= link_to "Log out", logout_path, class: "btn btn-secondary w-100 w-md-auto" %></p> | ||
<p><%= link_to t(:users_index_log_out_submit), logout_path, class: "btn btn-secondary w-100 w-md-auto" %></p> | ||
<% else %> | ||
<p>Not logged in!</p> | ||
<a class="btn btn-secondary w-100 w-md-auto" href="<%= new_ui_session_path %>">Go back</a> | ||
<p><%= t :users_index_not_logged_in_message %></p> | ||
<a class="btn btn-secondary w-100 w-md-auto" href="<%= new_ui_session_path %>"><%= t :users_index_log_in_link %></a> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
en: | ||
login_before_sso_notice: "Please log in before using SSO" | ||
new_session_title: "Welcome!" | ||
new_session_success: "You have been successfully logged in!" | ||
new_session_failure: "Email or password is invalid." | ||
password_reset_notice: "Please check your email to reset the password." | ||
password_reset_landing_title: "Change password" | ||
password_reset_failure: "Your password doesn't match the confirmation." | ||
password_reset_success: "Changed password for: %{username}." | ||
password_reset_invalid: "Your reset code might be too old or have been used before." | ||
destroy_session_success: "Logged out!" | ||
users_index_title: "User information" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
en: | ||
users_index_logged_in_message: "Logged in as %{username}." | ||
users_index_access_token_label: "Your access token:" | ||
users_index_log_out_submit: "Log out" | ||
users_index_not_logged_in_message: "Not logged in!" | ||
users_index_log_in_link: "Go back" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
en: | ||
footer_logo_alt: "Smart Citizen" | ||
footer_social_links: "Follow us" | ||
footer_twitter_alt: "Twitter" | ||
footer_facebook_alt: "Facebook" | ||
footer_instagram_alt: "Instagram" | ||
footer_attribution: "A project by" | ||
footer_fablab_alt: "Fablab BCN" | ||
footer_iaac_alt: "IAAC" | ||
footer_funding_html: "Smart Citizen has received funding from the<br />European Community’s H2020 Programme<br />under Grant Agreement No. 689954." | ||
footer_licence_html: 'Except where otherwise noted, content on this site by Smart Citizen® is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br /> Check the <a rel="policy" href="https://smartcitizen.me/policy">Terms of use and Privacy Policy</a>.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
en: | ||
title: "SmartCitizen platform" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
en: | ||
logo_alt: "SmartCitizen" | ||
hamburger_label: "Toggle navigation" | ||
home_link_url: "https://smartcitizen.me/kits/" | ||
home_link_text: "Home" | ||
documentation_link_url: "https://docs.smartcitizen.me" | ||
documentation_link_text: "Documentation" | ||
forum_link_url: "https://forum.smartcitizen.me" | ||
forum_link_text: "Forum" | ||
kit_link_url: "https://smartcitizen.me#get-your-kit" | ||
kit_link_text: "Get your kit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
en: | ||
new_session_submit: "Sign into your account" | ||
new_account_heading: "Don't have an account?" | ||
new_account_submit: "Sign up" | ||
forgot_password_heading: "Forgot your password?" | ||
forgot_password_submit: "Reset password" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters