LecygneNoir 0848957f19 | 5 years ago | |
---|---|---|
Database | 5 years ago | |
Modules | 5 years ago | |
Translation/fr | 5 years ago | |
.gitignore | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
extract_module.sh | 5 years ago | |
rollback_database.sh | 5 years ago | |
rollback_module.sh | 5 years ago | |
thea2_v0.1-ea_fr.zip | 5 years ago |
Scripting tools to interact with Thea 2 The Shattering's files in order to translate them easily.
To convert from XML
grep Key DATABASE_UI_LOCALIZATION.xml | awk -F'"' '{print "#. "$2"\n" "msgid " "\""$4"\"" "\n" "msgstr " "\"\""}' > DATABASE_UI_LOCALIZATION.pot.tmp
msguniq --no-wrap DATABASE_UI_LOCALIZATION.pot.tmp > DATABASE_UI_LOCALIZATION.pot
To convert from txt :
for text in Modules/game_files/*; do ./extract_module.sh "${text}"; done