forked from RefugeRestrooms/refugerestrooms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge RefugeRestrooms#421: Make remaining pages translation-ready
Squashed commit of the following: commit ad63129 Merge: 2bc775f 75b4ba0 Author: Mikena Wood <[email protected]> Date: Sun Jan 21 16:37:48 2018 -0800 Merge branch 'develop' into new-translation-ready commit 2bc775f Author: DeeDeeG <[email protected]> Date: Fri Jan 19 14:14:48 2018 -0500 contact submitted page: Make translation-ready * Add translation strings in `config/locales/en/contacts.en.yml` * Update `views/contacts/create.html.haml` to use translation strings * Update `contacts_controller.rb` to use translation strings commit ba3fefa Merge: 6483ea2 8f8d7ef Author: DeeDeeG <[email protected]> Date: Wed Jan 17 13:35:40 2018 -0500 Merge branch 'new-translation-ready' into develop * Fixes merge conflict with `landing.en.yml` * Moves English translations to the en sub-folder to match upstream. commit 8f8d7ef Author: DeeDeeG <[email protected]> Date: Wed Jan 17 13:13:02 2018 -0500 contact: Change button label ['Submit' -> 'Send'] * Changes the button label back from 'Submit message' to 'Send message'. (was changed in a previous commit accidentally.) commit 7847997 Author: DeeDeeG <[email protected]> Date: Wed Jan 17 11:51:11 2018 -0500 text: Make translation-ready * Fix translation string key names in `text.html.haml` * Add `centered-text` class to paragraphs to make them centered. * Replace explicit "style=" per-element with CSS classes for other instances of text-centering on the page. More readable/maintainable? commit aede79b Author: DeeDeeG <[email protected]> Date: Tue Jan 16 23:05:56 2018 -0500 footer: Reorganize the aria-label translations * Moves aria-label translation strings of the footer into a separate sub-category in `locales/footer.en.yml`, allowing the individual translation key names to be much shorter. 'refuge-restrooms-on-twitter-aria-label' => 'aria-labels.refuge-restrooms-on-twitter" * Shorten the key names further from e.g.: 'refuge-restrooms-on-twitter' => 'twitter' * Updates `_footer.html.haml` to use the new key names. Thanks again @tkwidmer for the review. commit 70c7c9c Author: DeeDeeG <[email protected]> Date: Tue Jan 16 22:45:18 2018 -0500 contact: Simplify code for h1 header Takes better advantage of interpolation features. Thanks @tkwidmer for pointing this out. commit 7c87ccf Author: DeeDeeG <[email protected]> Date: Mon Jan 15 18:57:19 2018 -0500 search buttons: Make translation-ready * Add translation strings in `config/locales/search.en.yml` * Update `layouts/_search.html.haml` to use translation strings commit 5337341 Author: DeeDeeG <[email protected]> Date: Mon Jan 15 18:12:53 2018 -0500 footer: Make translation-ready * Add translation strings in `config/locales/footer.en.yml` * Update `_footer.html.haml` to use translation strings commit 9abc8fb Author: DeeDeeG <[email protected]> Date: Mon Jan 15 16:37:51 2018 -0500 navigation: Make translation-ready * Add translation strings in `config/locales/navigation.en.yml` * update `layouts/_navigation.html.haml` to use translation strings commit 5a37427 Author: DeeDeeG <[email protected]> Date: Mon Jan 15 16:07:22 2018 -0500 restroom search & entries: Make translation-ready * Add translation strings in `config/locales/restrooms.en.yml` * Update `index.html.haml` to evaluate translation strings * Update `show.html.haml` to evaluate translation strings commit 1c6ef8f Author: DeeDeeG <[email protected]> Date: Mon Jan 15 14:54:00 2018 -0500 Contact page: Fix h1 heading h1 heading now properly renders with the Restroom listing's name, when requesting contact from an existing restroom page. (Translating this heading with one translation string won't work, because dynamic Ruby content won't render properly in a translation string. In this case, the dynamic content is the name of the Restroom entry.) commit dd0a1f1 Author: DeeDeeG <[email protected]> Date: Sat Jan 13 16:44:07 2018 -0500 Contact page: Make translation-ready * Updates `app/views/contacts/new.html.haml` to evaluate translation strings * Add translation strings in `config/locales/contacts.en.yml` * Also updates `config/locales/simple_form.en.yml` to translate input forms on Contact page * Difficult to make "Thank you for contacting us" page translation-ready, so ignored that for now. commit ce2cb91 Author: DeeDeeG <[email protected]> Date: Thu Jan 11 16:38:05 2018 -0500 splash page: Make translation-ready * Add translation strings in `config/locales` * Update `index.html.haml` to evaluate translation strings commit be9e684 Author: DeeDeeG <[email protected]> Date: Thu Jan 11 16:14:59 2018 -0500 config/locales: Delete unused "landing" file This landing text insn't used anymore (was on splash page), so we don't need to translate it.
- Loading branch information
Showing
18 changed files
with
111 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.container | ||
%h1 Thank you for your message. | ||
%p We'll get back to you soon. | ||
%h1= t('contacts.submitted.thank-you-period') | ||
%p.centered-text= t('contacts.submitted.we-will-get-back-to-you') |
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,20 +1,20 @@ | ||
%footer | ||
.footer | ||
%a.iconLink{:href => "https://github.com/RefugeRestrooms/refugerestrooms", :aria => { :label => "Refuge Restrooms on github"}} | ||
%a.iconLink{:href => "https://github.com/RefugeRestrooms/refugerestrooms", :aria => { :label => t('.aria-labels.github')}} | ||
%i.icon.fa.fa-github-square.fa-3x | ||
%a.iconLink{:href => "https://twitter.com/refugerestrooms", :aria => { :label => "Refuge Restrooms on twitter"}} | ||
%a.iconLink{:href => "https://twitter.com/refugerestrooms", :aria => { :label => t('.aria-labels.twitter')}} | ||
%i.icon.fa.fa-twitter-square.fa-3x | ||
%a.iconLink{:href => "https://www.facebook.com/refugerestrooms", :aria => { :label => "Refuge Restrooms on facebook"}} | ||
%a.iconLink{:href => "https://www.facebook.com/refugerestrooms", :aria => { :label => t('.aria-labels.facebook')}} | ||
%i.icon.fa.fa-facebook-square.fa-3x | ||
%a.iconLink{:href => "http://blog.refugerestrooms.org/", :aria => { :label => "Refuge Restrooms's blog on tumblr"}} | ||
%a.iconLink{:href => "http://blog.refugerestrooms.org/", :aria => { :label => t('.aria-labels.tumblr')}} | ||
%i.icon.fa.fa-tumblr-square.fa-3x | ||
%a.iconLink{:href => contact_path, :aria => { :label => "Email Refuge Restrooms"}} | ||
%a.iconLink{:href => contact_path, :aria => { :label => t('.aria-labels.email')}} | ||
%i.icon.fa.fa-envelope.fa-3x | ||
%br/ | ||
refuge restrooms is open source. | ||
%a{:href => "https://github.com/RefugeRestrooms/refugerestrooms"} code on github. | ||
= t('.refuge-restrooms-is-open-source') | ||
%a{:href => "https://github.com/RefugeRestrooms/refugerestrooms"} #{t('.code-on-github')} | ||
%br/ | ||
contribute to the project | ||
%a{:href => "https://patreon.com/refugerestrooms"} on patreon. | ||
= t('.contribute-to-the-project') | ||
%a{:href => "https://patreon.com/refugerestrooms"} #{t('.on-patreon')} | ||
%br/ | ||
= "\© copyleft #{Date.today.year} refuge restrooms.".html_safe | ||
= "\© #{t('.copyleft')} #{Date.today.year} #{t('.refuge-restrooms')}".html_safe |
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,7 +1,7 @@ | ||
.text-padding | ||
%h1= t('pages.text_msg.title') | ||
%p= t('pages.text_msg.intro').html_safe | ||
%h2{:style => "text-align: center;"}= t('pages.text_msg.instructions') | ||
%p= t('.tip') | ||
%div{:style => "margin:30px auto;text-align:center;"} | ||
%h1= t('pages.text.title') | ||
%p.centered-text= t('pages.text.intro').html_safe | ||
%h2.centered-text= t('pages.text.instructions') | ||
%p.centered-text= t('.tip') | ||
%div.centered-text{:style => "margin:30px auto"} | ||
%img{:src => "/assets/text-msg-demo.png"}/ |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
en: | ||
contacts: | ||
new: | ||
request-edit-for-restroom: 'Request Edit for %{restroom_name} Restroom' | ||
contact-title: 'Contact' | ||
leave-this-field-blank: 'Leave this field blank!' | ||
submitted: | ||
thank-you-period: 'Thank you for your message.' | ||
thank-you-exclamation: 'Thank you for your message!' | ||
cannot-send: 'Cannot send message.' | ||
we-will-get-back-to-you: "We'll get back to you soon." |
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,15 @@ | ||
en: | ||
layouts: | ||
footer: | ||
aria-labels: | ||
github: 'Refuge Restrooms on GitHub' | ||
twitter: 'Refuge Restrooms on twitter' | ||
facebook: 'Refuge Restrooms on Facebook' | ||
tumblr: 'Refuge Restrooms blog on tumblr' | ||
email: 'Email Refuge Restrooms' | ||
refuge-restrooms-is-open-source: 'refuge restrooms is open source.' | ||
code-on-github: 'code on github.' | ||
contribute-to-the-project: 'contribute to the project' | ||
on-patreon: 'on patreon.' | ||
copyleft: 'copyleft' | ||
refuge-restrooms: 'refuge restrooms.' |
This file was deleted.
Oops, something went wrong.
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: | ||
layouts: | ||
navigation: | ||
toggle-navigation-button-label: 'Toggle navigation' | ||
submit-a-new-restroom-hyperlink-label: 'Submit a New Restroom' | ||
about-hyperlink-label: 'About' | ||
contact-hyperlink-label: 'Contact' | ||
|
||
resources-dropdown-button-label: 'Resources' | ||
download-unisex-restroom-signs-hyperlink-label: 'Download Unisex Restroom Signs' | ||
public-api-hyperlink-label: Public API |
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,8 @@ | ||
en: | ||
restrooms: | ||
index: | ||
map-view-button-label: 'Map View' | ||
|
||
show: | ||
thumbs-up-button-label: 'Thumbs Up' | ||
thumbs-down-button-label: 'Thumbs Down' |
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: | ||
layouts: | ||
search: | ||
search: 'Search' | ||
search-by-current-location: 'Search by Current Location' | ||
|
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,6 @@ | ||
en: | ||
pages: | ||
index: | ||
life-is-tough: 'Sometimes life is tough...' | ||
find-refuge: 'Find Refuge' | ||
add-restroom-button-label: 'Add A Restroom' |