-
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
Font Libary: Add missing translation functions #58104
Conversation
This pull request changed or added PHP files in previous commits, but none have been detected in the latest commit. Thank you! ❤️ |
Size Change: -3 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
Flaky tests detected in 1213051. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7900397566
|
b79e14b
to
c3bb64c
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.
Thanks for addressing this @t-hamano !
Some of these actually use the default
text domain intentionally, because the strings are already translated in Core. See inline comments for details.
lib/experimental/fonts/font-library/class-wp-rest-font-collections-controller.php
Outdated
Show resolved
Hide resolved
lib/experimental/fonts/font-library/class-wp-rest-font-faces-controller.php
Outdated
Show resolved
Hide resolved
lib/experimental/fonts/font-library/class-wp-rest-font-families-controller.php
Outdated
Show resolved
Hide resolved
lib/experimental/fonts/font-library/class-wp-rest-font-families-controller.php
Outdated
Show resolved
Hide resolved
c3bb64c
to
1213051
Compare
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. |
Update: #58608 moved the font library classes to the 6.5 compat directory. Due to subsequent refactoring and modifications, it seems that it is no longer necessary to fix PHP files. Ultimately, this PR applies the translation function to only one place of text present in the Javascript file. |
I think it is essential for this text to be translated in WP6.5, so I will give it a backport label. |
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
Co-authored-by: t-hamano <[email protected]> Co-authored-by: creativecoder <[email protected]> Co-authored-by: matiasbenedetto <[email protected]>
I just cherry-picked this PR to the more/backports-for-beta3 branch to get it included in the next release: 00f7e12 |
Co-authored-by: t-hamano <[email protected]> Co-authored-by: creativecoder <[email protected]> Co-authored-by: matiasbenedetto <[email protected]>
What?
I noticed that some text in files related to the Font Library is not translatable.
How?
Along with adding translation functions, I changed the text domain fromdefault
togutenberg
.Testing Instructions
All GitHub Actions should be green. These texts probably don't exist in core or Gutenberg, so if you change the language of your site, they shouldn't still be localized.