-
Notifications
You must be signed in to change notification settings - Fork 93
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
Refactor format of l10n strings to standard format #3137
Conversation
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
📅 Suggested merge-by date: 10/7/2024 |
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
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 @rudyflores for this localization fix. Should we also update the items in JobTableView.ts as well or does it behave differently in table views?
I believe this might be a potential issue too, thanks for finding that! Not sure why that didn't appear when searching :o |
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3137 +/- ##
=======================================
Coverage 92.55% 92.56%
=======================================
Files 113 113
Lines 11649 11640 -9
Branches 2577 2541 -36
=======================================
- Hits 10782 10774 -8
+ Misses 865 864 -1
Partials 2 2 ☔ View full report in Codecov by Sentry. |
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.
Does the previous function call not work for us due to issues with translations or our own logic, or is this something that could be resolved upstream in microsoft/vscode-l10n? I tried debugging this issue (changing languages with the translations in place), but it seems like the error occurs from within the |
If it is found to be upstream, should we have the workaround in place until fixed upstream? |
Definitely in favor of implementing a workaround until it can be resolved upstream - if it hasn't been filed as a bug in the l10n repo, we could make an issue with steps to reproduce. That said, if we're removing context from translators within POEditor, then it might be easier to wait for the fix so that we don't have to add the comments back once its resolved. If the comments are unused, then feel free to disregard - we can always keep the changes in place. |
@zFernand0 This should not affect the @rudyflores Thanks for the refactor! Are you able to provide more details about "issues on certain cases" to help with testing this PR? |
I think we should definitely have this workaround in place, otherwise we can't provide localization for any user's outside of english when we did in the past, which means we are breaking in terms of the support for that :/ |
Yes! @t1m0thyj so it fails if you change an l10n string to use the object format, so for example if you do that for any l10n string in our activation code and switch the language, Zowe Explorer will fail to activate |
Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com>
Signed-off-by: Peter Haumer <4391934+phaumer@users.noreply.github.com>
Quality Gate failedFailed conditions |
Can confirm that it now work. I posted updated translations in Slack. |
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! thanks @rudyflores for the fix
Thoughts on this? @phaumer @JillieBeanSim |
I cannot change the output format of our automated translation. If there is content that breaks it then we indeed need to remove from the translation input files. |
We could enhance the ZE npm script Edit: Here's an example of how that would look: 65c1f61 In that commit I've kept the l10n comments in code but stripped them from the json file. |
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.
Should we close this in favor of #3149?
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.
Waiting on a decision (on whether to close this PR) before reviewing 😋
Closing in favor of #3149 |
Proposed changes
Refactored format of l10n strings to use the standard
vscode.l10n.t(message, args)
format instead of thevscode.l10n.t({ message, args, comments })
format, which introduced issues on certain cases.Release Notes
Milestone: v3.0.0
Changelog: Changed format of l10n strings to standard format
Types of changes
Checklist
General
yarn workspace vscode-extension-for-zowe vscode:prepublish
pnpm --filter vscode-extension-for-zowe vscode:prepublish
Code coverage
Deployment
Further comments