-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fixed : Disambiguate "Cover" translatable string in the context of background-panel.js #62440
Fixed : Disambiguate "Cover" translatable string in the context of background-panel.js #62440
Conversation
…ckground-panel.js
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Thanks for the PR! It looks good to me. |
@audrasjb Thanks for the feedback, I have added the same for "Contains" and "Tile" string. |
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.
Thanks for the PR @narenin
I'd update the string to describe the translation context more accurately, and so it's differentiated from the Cover block context
packages/block-editor/src/components/global-styles/background-panel.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/global-styles/background-panel.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/global-styles/background-panel.js
Outdated
Show resolved
Hide resolved
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 stuff! Thanks for the quick changes 🙇🏻
…ckground-panel.js (#62440) * Fixed : Disambiguate 'Cover' translatable string in the context of background-panel.js * Added context for Contain and Tile * Implemented the suggestions Co-authored-by: narenin <narenin@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: audrasjb <audrasjb@git.wordpress.org>
…ckground-panel.js (#62440) * Fixed : Disambiguate 'Cover' translatable string in the context of background-panel.js * Added context for Contain and Tile * Implemented the suggestions Co-authored-by: narenin <narenin@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: audrasjb <audrasjb@git.wordpress.org>
…ckground-panel.js (WordPress#62440) * Fixed : Disambiguate 'Cover' translatable string in the context of background-panel.js * Added context for Contain and Tile * Implemented the suggestions Co-authored-by: narenin <narenin@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: audrasjb <audrasjb@git.wordpress.org>
This was cherry-picked to the wp/6.6 branch. |
Resolves #62426
What?
In image block's background-panel.js context, there is a "Cover" string sharing its translation with other occurrences of "Cover", like the Cover block. It results in wrong translation of the setting in some locales, like in French where the Cover Block is translated into "Bloc Bannière" while "Cover Size" cannot be translated into "Taille Bannière".
This PR will fix the issue raised in #62426
Why?
It fixed the disambiguate we have in "Cover" translatable string in the context of
background-panel.js
How?
This PR will add some context using _x(), just like we did in this other occurrence of "Cover", in a very similar context to fix this issue.
Testing Instructions
fr_FR
language packBackground panel component
Screenshots or screencast
Before:
After: