-
Notifications
You must be signed in to change notification settings - Fork 17
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
Import missing translations #2305
Conversation
Import translations missed out of the original import from the supplier (ASP). `bundle exec rake translation:import['dir/to/csv.csv']`
Renames the text keys and adds link.
bundle exec rake translation:normalize
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.
This is looking good - hardly any comments from me! Just a couple of questions below:
@@ -371,10 +371,10 @@ ur: | |||
release_date: اجراء کی تاریخ |
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.
I noticed two keys whose values contain HTML, but the key names don't end in _html
- were they missed?
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.
This confused me for a second! 😆 Those keys are actually unused and have been removed in the the following commit: 45d2065#diff-f8ecf4cd17cdd1ecc6f81401e44eba0a0e3c55ff9cd30b5acd1a3c4029fc5638L38-L39
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.
Great - thanks for confirming!
@@ -631,6 +631,7 @@ ar: | |||
engage_with_gov: | |||
fcdo_bloggers: | |||
follow: | |||
follow_links: |
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.
Do you know what the next steps are in terms of getting this key translated?
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.
Nope, unfortunately! Currently there is no contingency plan for importing translations. The mission got cut short 😢 I'm hoping the next team that inherits this work (Find and view which I'm moving to) can prioritise it, but we'll see.
Safeguard against raw HTML being rendered in the application. See [1] for more information. [1]: https://guides.rubyonrails.org/i18n.html#using-safe-html-translations
bundle exec i18n-tasks remove-unused
bundle exec rake translation:add_missing
0e12395
to
a2513fb
Compare
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.
LGTM 👍 thanks for answering my questions. ⭐
These languages were originally missed out from the supplier (ASP) and so this PR imports them.
Original import PR: #2285
More info in the commits ->
Trello:
https://trello.com/c/Xz78vNR4/2757-import-newly-sourced-translations-into-locale-files-5