Recently, I wrote an app to extract all key text (tooltip, input, options, quickstart miz name, module introduction, weapons in coremods etc), and generate the po file for localizations.
NOTE: to make desired text able to be localized, all the key text (tooltip, input name, category, options, quickstart miz name, weapon names, introduction) must be bracketed by _()
Now, program is upgraded to GUI version!!!
1. To translate, you need poedit to open po file
2. after translation, compile to po to mo file, and move it to 'XXX/l10n/LC/LC_MESSAGES/' and rename it 'messages.mo'. Replace /LC/ by any locale (en, ru, de, fr, es, cn, it, cs), e.g. xxx/l10n/ru/LC_MESSAGES/
3. guarantee that the locale in Config/lang.cfg is same as LC of the path.
NOTE: to make desired text able to be localized, all the key text (tooltip, device name, input name, category, options, quickstart miz name, weapon names, introduction) must be bracketed by _()
1. put the exe under the root of desired module folder
(e.g. /Mods/aircraft/L-39C/po_extractor.exe)
2. create po file:
2.1 double click the exe file to open the GUI window, select desired entries
2.2 click Run, and it will create a xxx.po file
for that module (xx is the updateid of the module)
3. update po file:
3.1 after receiving po files with keys translated from translators, put those po file
under the root of that module folder (where the exe file exists)
3.2 run the exe. If key names are modified (changed, deleted, added),
then the po will be updated accordingly
(delete, add, keep existing translated keys(if key name not changed) )