-
Notifications
You must be signed in to change notification settings - Fork 338
utils: Translation Utility Script #1831
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
utils: Translation Utility Script #1831
Conversation
|
You can find the missing translations in https://github.com/sourcegit-scm/sourcegit/blob/develop/TRANSLATION.md |
|
The script is not only for showing the missing tags (the Instead of checking each key manually, you can run the script with the desired language, and it will interactively review the missing keys, prompting you for the translation of each one. Once you're done, it automatically saves the translated text back into the target language file, maintaining alphabetical order. This approach is much simpler than copying and pasting keys, figuring out where to place them, and determining if they are missing or just out of order. |
|
Can this be reviewed again? |
|
I'm very sorry for my late reply. I suggest placing |
A small python scritp that helps to translate between EN to a target language. It loads the target translation file and compares with the EN base file, showing which keys are missing and asking to translate.
7be9ba9 to
0959e46
Compare
|
Hi, I've updated the branch with the requested changes. Can you check it again? Thanks! |
Translate Utility Script
A script that assists with translations by reading the target language, comparing it with the base language, and going through missing keys one by one, so the translator can provide the translations interactively without needing to check each key manually.
Usage
Check for a given language (e.g.,
pt_BR) and optionally check for missing translations:pt_BRis the target language code (change as needed), it should correspond to a file namedpt_BR.axamlin thesrc/Resources/Locales/directory, so you can replace it with any other language code you want to translate, e.g.,de_DE,es_ES, etc.--checkis an optional flag used to only check for missing keys without prompting for translations, useful for getting a list of missing translations.The script will read the base language file (
en_US.axaml) and the target language file (e.g.,pt_BR.axaml), identify missing keys, and prompt you to provide translations for those keys. If the--checkflag is used, it will only list the missing keys without prompting for translations.