-
Notifications
You must be signed in to change notification settings - Fork 1.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
Update built-in help output for localization (Issue #3907) #3911
Update built-in help output for localization (Issue #3907) #3911
Conversation
Support localizing the output of a call to to match the firmware's language.
… add-translation-for-builtin-object-help * 'main' of https://github.com/adafruit/circuitpython: update wake-alarm implementation enable light-sleep functionality update frozen libs for 6.1.0-beta.3 Revert "Removing frozen libs" add pretend-to-sleep functionality expose wake pin parameter and more tweaks add touch alarm support for esp32s2 implement touch alarm
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! I'd love to find a way to do the full help text too. I ran into an issue that gettext can't find the multiline contents when I tried before.
I'm certainly not an expert on GetText, but from what I've run into with other systems in the past, I suspect it might have to do with the default locale text being the key. So say the text is Ideally, the key text would be a simple string that the system doesn't have a chance (or need) to transform in any way. For example, using the message "division by zero". Within the code itself, in its place would be "DIVISION_BY_ZERO" or some other agreed-upon formatted text. For a more complex example, using this string: " Its key could be something like "GITHUB_ISSUE_WITH_CONTENTS". That would require a good amount of refactoring, including creating the English "Translation", and ensuring that the builds for the |
This is fine with me if you want to switch it to this! |
bf80442
to
ad7f4d8
Compare
Please update the .pot again. I've merged lots of things in. Thanks! |
Merge conflict resolved, although that was an odd conflict. Waiting for the checks to complete |
Fix missing closing quote
… add-translation-for-builtin-object-help
… add-translation-for-builtin-object-help * 'main' of https://github.com/adafruit/circuitpython: Revert "UMFEATHERS2 - implement use of DotStar for status led" fix doc build Update to 1.7.1 Set year from execution date Hard code new copyright date Update translations ulab: update to 1.7.0 Rename to match WIFI_REASON. Also include specific error code in "Unknown failure" Exception. Include all reason codes. Rename to match WIFI_REASON. Also return specific reason code. Retry on all disconnect reasons other than: 2 exception reasons & 1 manual disconnect reason.
@dhalbert should these boards build now? |
Yes, I will re-run |
I would like to hold off on this PR for 6.1.0-beta.0. A number of de_DE builds are overflowing by small amounts. It would be nice to find some savings somewhere rather than radically shrink these builds, or do special de_DE builds. |
This is not as complicated as I thought. I think I have the fixes I need. |
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.
All set! Thanks!
Adding localization values for the output of calls to help() can match the current firmware's language.
This change addresses issue #3907
n.b.: This is a recreation of PR #3908 since ran into issues with my previous local branch. Apologies for the noise and mess.