Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing translations #344

Merged
merged 3 commits into from
Mar 10, 2017

Conversation

ndrluis
Copy link
Contributor

@ndrluis ndrluis commented Dec 16, 2015

I added some translations that were missing but now I need some help to fill the others locales.

@ndrluis ndrluis force-pushed the add-missing-translations branch from c0e0a83 to 87de797 Compare December 16, 2015 14:49
@@ -15,13 +15,13 @@ It displays a header, and renders the `_form` partial to do the heavy lifting.
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Form
%>

<% content_for(:title) { "Edit #{page.page_title}" } %>
<% content_for(:title) { "#{t("administrate.actions.edit")} #{page.page_title}" } %>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about passing the page title as an option to the translation? That would be good for languages where the title makes more sense before the edit word. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, something like

t("administrate.actions.edit_resource", resource: page.page_title)

would be good.

@ndrluis ndrluis force-pushed the add-missing-translations branch from 87de797 to e1219e2 Compare December 16, 2015 19:32
@c-lliope
Copy link
Contributor

A big 👍. Thanks!

@neves
Copy link

neves commented Dec 20, 2015

@hudsonsferreira
Copy link

please @ndrluis just keep the good work here

@nickcharlton
Copy link
Member

@ndrluis I'd love to merge this. Could you rebase on master or enable contributor pushes?

@ndrluis
Copy link
Contributor Author

ndrluis commented Mar 8, 2017

@nickcharlton I enabled the pushes.

@nickcharlton nickcharlton force-pushed the add-missing-translations branch from e1219e2 to 5f3210b Compare March 10, 2017 14:24
@nickcharlton nickcharlton merged commit ca38d69 into thoughtbot:master Mar 10, 2017
nickcharlton added a commit that referenced this pull request Mar 10, 2017
`with_translations` is used to test that a view does actually implement
a given translation. Previously, we were resetting the known
translations to only use the one under test. We now have many more
translations so this approach will fail when visiting a page because of
"missing translations".

Example: https://git.io/vywpc

This came up when merging #344.
nickcharlton added a commit that referenced this pull request Mar 17, 2017
`with_translations` is used to test that a view does actually implement
a given translation. Previously, we were resetting the known
translations to only use the one under test. We now have many more
translations so this approach will fail when visiting a page because of
"missing translations".

Example: https://git.io/vywpc

This came up when merging #344.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants