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
views/notifications i18n #15056
views/notifications i18n #15056
Conversation
|
Thank you for opening this PR! We appreciate you! For all pull requests coming from third-party forks we will need to A Forem Team member will review this contribution and get back to |
|
Hey @yheuhtozr! 👋 Can you please update your branch with the latest code from the repository’s |
f38f928
to
6e31b17
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.
Hi @yheuhtozr thanks for the PR!
This LGTM except for the conflict that was there. I just pushed a tiny fix for that last file to hopefully trigger the Travis build that seems stuck. Once all checks pass it should be good to merge 😃
bd56234
to
2e20164
Compare
|
@fdoxyz Thank you for the commit and the error report. I had to repush everything again to fix the error that makes Travis stop, due to my workflow. The conflict is technically resolved too except GitHub doesn't think so because it was operated outside GH. I hope whoever merges this can simply accept all changes from my side before merging. |
|
The CI tests may not be running because of the merge conflict - and that looks like it's related to conflicting updates in main from #15043 that used I think it makes sense to keep the existing There's one conflict around the aria label for the |
This is the exact reason I want to separate them into each namespace. I have already cut off a lot, but those For example you have "all"; all what? If you mean "all comments", všechny, but "all notifications", všechna in Czech. You don't have to follow my namespace, but you have to split it up somehow. |
|
@djuber On second thoughts, perhaps your idea of "global vocabulary" should be materialized as a glossary or style guide, which you can just put dictionary forms in and translators know how to inflect them according to the context, rather than the actual translations directly inserted into UI. |
|
I resolved the merge conflicts now. However, I'm holding off on hearing back from @djuber regarding the global vocabulary discussion above. |
app/helpers/notifications_helper.rb
Outdated
| @@ -23,6 +23,6 @@ def message_user_acted_maybe_org(data, action, if_org: "") | |||
| ) | |||
| else | |||
| I18n.t(action, user: key_to_link.call("user")) | |||
| end.html_safe | |||
| end.html_safe # rubocop:disable Rails/OutputSafety | |||
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 seems a peculiar phenomenon that a rubocop comment angers a spec test which previously passed. But otherwise I don't think the line would pass the husky check.
* views/notifications etc i18n * notifications PR fixes * remove ja.yml * Update en.yml * Update fr.yml * Update en.yml * Update fr.yml * Update _comment.html.erb * Update _comment.html.erb * Update notifications_helper.rb * Update notifications_helper.rb * Update notifications_helper.rb * Update notifications_helper.rb Co-authored-by: Michael Kohl <citizen428@forem.com>
What type of PR is this? (check all applicable)
Description
Extracts strings for i18n from app/views/notifications and related files. Attached fr locale for testing purposes. Existing translations up to #15002 reflected (hopefully).
Related Tickets & Documents
Relates to #14888
QA Instructions, Screenshots, Recordings
UI accessibility concerns?
Added/updated tests?
have not been included
[Forem core team only] How will this change be communicated?
Will this PR introduce a change that impacts Forem members or creators, the
development process, or any of our internal teams? If so, please note how you
will share this change with the people who need to know about it.
Storybook (for Crayons components)
updated. I have filled out the
Changes Requested
issue template so Community Success can help update the Admin Docs
appropriately.
CHANGELOG.mdor in a forem.dev post
[optional] Are there any post deployment tasks we need to perform?
N/A
[optional] What gif best describes this PR or how it makes you feel?