-
Notifications
You must be signed in to change notification settings - Fork 293
3rd party mods translation
Firestorm01X2 edited this page May 10, 2021
·
7 revisions
Here is simplified steps that most of the modders will be able to follow, this one is for Windows:
- Install PoEdit
- Install Python
- Open Windows CMD and type pip install polib
- Copy extract_json_strings.py and dedup_pot_file.py from the lang folder of repository to the mod folder you wish to translate
- In the folder mod create batch file with next content:
CD /D %~dp0
md lang
python extract_json_strings.py -i "%cd%" -o "%cd%\lang\extracted_strings.pot" --project Mod_Translation
python dedup_pot_file.py "%cd%\lang\extracted_strings.pot"
-
After launching this .bat file there will be extracted_strings.pot in the mod's lang directory, which can be edited with Poedit [Poedit instructions here, there are simple enough already]
-
the .bat file could be distributed along the scripts too, if it's applicable; in that case step 4 should include that file as well, and step 5 will be obsolete.