-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix a NSLocalizedStrings not using a literal value, leading to an export issue
#19606
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
Conversation
Because the `value` parameter of those two `NSLocalizedString` entries was not a literal, it wasn't extracted properly by `genstrings` into the `Localizable.strings` file, and led to the original / English copy exported to GlotPress to be the same as the semantic key instead of being the value.
|
@mokagio I'm guessing your PR #19553 would have helped catch this one too if it had landed in time? 😅 Though, when I tried to run [EDIT] As you can see below, even running it manually, I don't see any warning… even while the |
You can test the changes in WordPress from this Pull Request by:
|
You can test the changes in Jetpack from this Pull Request by:
|
mokagio
left a comment
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 @AliSoftware !
The
valueparameter of twoNSLocalizedStringcalls (that were added in #19563) was not a string literal, which made those entries not being extracted properly bygenstrings/generate_strings_file_for_glotpressinto theLocalizable.stringsduring code freeze, and thus led to the original / English copy exported to GlotPress to be the same as the semantic key, instead of being the expected English copy.This was reported to us by a polyglot in the Making WordPress Slack here.
To test:
Regression Notes
None
I haven't launched the app to test that those changes don't affect the copy presented to the end user (also because I didn't know how to reproduce the right context to navigate to that migration screen in the app and test it).
Feel free to test it yourself if you feel it's worth it — though the code diff is pretty straightforward I think.
N/A
PR submission checklist:
I have considered adding unit tests for my changes.I have considered adding accessibility improvements for my changes.I have considered if this change warrants user-facing release notes and have added them to.RELEASE-NOTES.txtif necessary