-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add missing translations #344
Conversation
c0e0a83
to
87de797
Compare
@@ -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}" } %> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
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.
87de797
to
e1219e2
Compare
A big 👍. Thanks! |
Can you translate |
please @ndrluis just keep the good work here |
Add 'new' and 'back' translation
Add 'new' and 'back' translation
@ndrluis I'd love to merge this. Could you rebase on |
@nickcharlton I enabled the pushes. |
e1219e2
to
5f3210b
Compare
`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.
`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.
I added some translations that were missing but now I need some help to fill the others locales.