Changes between Version 17 and Version 18 of Implementation_of_Internationalization_and_Localization
- Timestamp:
- Dec 27, 2021, 4:41:01 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Implementation_of_Internationalization_and_Localization
v17 v18 106 106 To run this script you need a transifex account and need to install the Transifex client library. See [https://docs.transifex.com/client/installing-the-client the transifex documentation] for installation and updating. 107 107 108 == Long Strings Locale == 109 The `source/tools/i18n/generateDebugTranslation.py` is a special script that generates a PO file for an artificial language with code "long". This PO file consists of the longest strings (as in number of characters) of every available language for each message. 108 == Localization Debug == 109 The `source/tools/i18n/generateDebugTranslation.py` is a special script that generates a PO files for debugging purposes. Currently it has two functionalities. 110 === Long String Locale === 111 Running `source/tools/i18n/generateDebugTranslation.py --long` generates PO files for an artificial language with code "long". This PO file consists of the longest strings (as in number of characters) of every available language for each message. 110 112 111 The `generateDebugTranslation.py` script parses the PO files in the `l10n` folders of the sources, and generates the new PO file in each of those `l10n` folders as well. Remember to download the real PO files before you call the script, so that the script can read the translations from them in order to find the longest strings. 113 The `generateDebugTranslation.py --long` script parses the PO files in the `l10n` folders of the sources, and generates the new PO file in each of those `l10n` folders as well. Remember to download the real PO files before you call the script, so that the script can read the translations from them in order to find the longest strings. 114 115 === Non Translated Strings === 116 Running `source/tools/i18n/generateDebugTranslation.py --debug` generates a language, prefixing all untranslated string with `DEBUG_PREFIX`. This makes it easy to identify untranslated strings, while the game is still navigable. The language code is "debug". 112 117 113 118 = Language Selection Menu =