-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
[WIP] Add translation string support #10995
Conversation
Without keys tidy - probably going to revert Updates to param scripts Move translation scanning into own module
PS I am fully expecting you to hate my Python. That can be tidied if the overall approach is considered OK. |
Thanks for your work, we will join translation when it's ready. |
@dagar The build now passes - the failure appears unrelated to this. Can you please ETA review? |
We should add something simple to CI (Jenkins) that runs this. Next we'd have it post to Crowdin automatically on an overall successful master build. Example Generate Metadata - |
Yes.
I don't think we want to do this. Instead we want to automatically save /src/lib/parameters/translations/parameter_strings.xml into the github tree. Crowdin can be set up to automatically suck out updates and export a PR to spit out the translated results into the same directly. |
We tried to run |
|
||
for group in groups: | ||
group_name=group.GetName() | ||
if group_name not in unique_strings: |
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.
Oh, looks like it is
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.
Indeed :-)
This is waiting on @dagar - he will review and merge (if appropriate) when it gets near the top of his priority list.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
(っ•̀ω•́)っ✎⁾⁾ |
@bkueng FYI, this is languishing, but the problem of parameter translation is worth thinking about when you look at the broader "strings in PX4" translation support. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
@hamishwillee Hey, What is the stage of this PR now? |
@dagar This is my first shot at adding translation string support. Gus still needs to add support for the format described in part 3. This is apparently easy as it is a direct copy of what he does for the camera definition files.
It has three main parts:
--translation_xml
in *px_process_params.pylocalization
to end ofparameters
that haslocale
tags of following format for each locale.This will not fall over if the translation files are missing.
Once this (or something like it) is agreed we can add the crowdin integration.