Skip to content

Commit e4d0762

Browse files
committed
chore(translations): merge new un-translated string(s) to existing .po files
1 parent b092e0e commit e4d0762

12 files changed

Lines changed: 2568 additions & 2241 deletions

.github/instructions/gui_translation_instructions.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,25 @@ then translated into language-specific `.po` files, which are compiled into bina
3434
1. **Extract missing translations**: Execute `python extract_missing_translations.py` in the project root directory.
3535
The script automatically detects all existing languages and creates/updates `missing_translations_<lang_code>.txt` files in the root directory.
3636

37-
1. **Translate strings**: Open each `missing_translations_<lang_code>.txt` file and translate the strings from English to the target language.
37+
1. **Translate strings in-place**: Open each `missing_translations_<lang_code>.txt` file and **directly replace** the English text with the target language translation.
3838
Follow the translation guidelines defined below.
3939

40-
**IMPORTANT**: The translation files contain lines in the format `line_number:English text`.
41-
You must replace the English text with the translated text, keeping the line number and colon.
40+
**CRITICAL**: Do NOT create new files. You must edit the original `missing_translations_<lang_code>.txt` files in-place.
41+
The translation files contain lines in the format `line_number:English text`.
42+
You must replace the English text with the translated text, keeping the line number and colon exactly as they are.
4243

4344
Example:
4445

4546
```text
46-
Original: 3614:Copy vehicle image from template
47-
Correct: 3614:Copiar imagem do veículo do modelo
47+
Before: 3614:Copy vehicle image from template
48+
After: 3614:Copiar imagem do veículo do modelo
4849
```
4950

51+
**Do NOT do this**:
52+
- Creating files with names like `missing_translations_<lang_code>_translated.txt`
53+
- Changing the line numbers
54+
- Removing the colon separator
55+
5056
1. **Insert translations**: Execute `python insert_missing_translations.py` in the project root directory.
5157
The script automatically processes all language files and inserts the translated strings into their respective `.po` files in `ardupilot_methodic_configurator/locale/<lang_code>/LC_MESSAGES/`.
5258

0 commit comments

Comments
 (0)