-
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
Remove hardcoded strings from controllers, presenters and views #2116
Conversation
f1393b6
to
03ff080
Compare
03ff080
to
e18dbea
Compare
e18dbea
to
8b662cc
Compare
8b662cc
to
8a3d7b0
Compare
8a3d7b0
to
d53b94c
Compare
185715a
to
6ad033a
Compare
6ad033a
to
94360bf
Compare
94360bf
to
098f900
Compare
098f900
to
f2a5b8c
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.
Looks good, I've left a few comments, although nothing major.
app/views/content_items/html_publication/_print_meta_data.html.erb
Outdated
Show resolved
Hide resolved
f2a5b8c
to
f6e6c78
Compare
Recent commits have removed all hardcoded English content from the controllers, presenters and views. The content is currently only in the English locale file, so adding placeholders to the other languages gives us visiblity of what needs to be translated.
f6e6c78
to
0ec9f6c
Compare
Nice work @brucebolt, just have one question. Are we not including specs in these changes? It's quite useful to have the specs using i18n as it means locale changes don't require the tests to be updated. |
That's a good question that I hadn't considered 🙈 . I'll see how much work it would be to update these too. |
Looks like this could be a rather difficult task. We've got strings in the tests that come from |
Sure thing, I don't think it's important enough to block this work but is a nice to have. As you say, these can be updated as and when they're changed, hopefully 🤞 I'll probably add them in for collections as I've already done some, and it hasn't got hairy, yet... 😄 |
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.
Looks good to me 🍏
Moves all hardcoded English strings from controllers, presenters and views to the English locale file and adds placeholder keys for these in all other languages.
This will allow us to gain visibility of content that needs to be translated in order to fully support non-English content on GOV.UK.
This does not translate the "histories" pages which contain substantial amounts of hardcoded English content.
Trello card