-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add "menu" context for translation of menu labels #10932
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
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 @krassowski
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.
Awesome :)
@meeseeksdev please backport to 3.1.x |
…#10977) Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
References
This is a follow up after #10931 and jupyterlab/jupyterlab-translate#8 adding "menu" context to the menu labels. This is needed for the translations to work (we lost the strings in pot file in transition the schema-based menus, and when re-introducing the them we decided to improve the translation context; this allows for example to translate "Edit" as "Edycja" (noun) for menu but "Edytuj" (verb) in another context, as appropriate.
Code changes
Use
_p
alias.User-facing changes
It is the penultimate change needed to make the language packs cover all JupyterLab GUI 🤞
Backwards-incompatible changes
None (current language packs are missing labels for menus).