-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix make dimensions.aspectRatios key of theme.json files translatable #61774
fix make dimensions.aspectRatios key of theme.json files translatable #61774
Conversation
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. |
@swissspidy I also updated the PR in core to include this: WordPress/wordpress-develop@ddc6877 |
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/theme-i18n.json |
@fabiankaegy, @swissspidy, what are the testing instructions for |
@Mamaduka I am unsure myself sadly. I just followed the code examples and looked at a few other PR's that implemented it |
Manually updating translation files & then verifying that the strings are transkated woukd be one option. |
If I understand correctly, I tried testing existing presets, but for some reason they don't translate. For example, color presets are translated into Japanese on GlotPress: But when I change the site language to Japanese, the color palette is not 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.
As far as I'm aware, this is the only setting that should control i18n for theme.json. I'm going to get this merged for the 18.4 release, but I think it's worthwhile looking into the issue of it not working even for the pre-existing color palette that @t-hamano shared above.
1ad43f1
to
6d89977
Compare
Flaky tests detected in 6d89977. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9198731152
|
…#61774) Co-authored-by: fabiankaegy <[email protected]> Co-authored-by: ajlende <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: swissspidy <[email protected]> Co-authored-by: t-hamano <[email protected]>
I just cherry-picked this PR to the release/18.4 branch to get it included in the next release: 5d68089 |
https://github.com/WordPress/wordpress-develop/pull/6567 | ||
|
||
* https://github.com/WordPress/gutenberg/pull/47271 | ||
* https://github.com/WordPress/gutenberg/pull/61774 |
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.
Thank you ❤️
"name": "Aspect ratio name" | ||
} | ||
] | ||
}, |
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 needs to be backported?
…WordPress#61774) Co-authored-by: fabiankaegy <[email protected]> Co-authored-by: ajlende <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: swissspidy <[email protected]> Co-authored-by: t-hamano <[email protected]>
…WordPress#61774) Co-authored-by: fabiankaegy <[email protected]> Co-authored-by: ajlende <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: swissspidy <[email protected]> Co-authored-by: t-hamano <[email protected]>
What?
Make Aspect Ratio preset names in
theme.json
translatable.Why?
Closing #61767
How?
Adding the schema to the
theme-i18n.json
file.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast