Changes between Version 17 and Version 18 of Implementation_of_Internationalization_and_Localization


Ignore:
Timestamp:
Dec 27, 2021, 4:41:01 PM (13 months ago)
Author:
bb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Implementation_of_Internationalization_and_Localization

    v17 v18  
    106106To 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.
    107107
    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 ==
     109The `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 ===
     111Running `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.
    110112
    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.
     113The `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 ===
     116Running `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".
    112117
    113118= Language Selection Menu =