Scripting tools to interact with Thea 2 The Shattering files in order to translate them easily.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
LecygneNoir 0848957f19 Add some more comments to clarify the code, and solve the bug that break newline when txt has space in its name 5 years ago
Database Add source files from game version 370 (miss Quarry and MiscEncounter2, bugs to be solved) 5 years ago
Modules Fix version 370, still another regression in newline due to typo inside extract_module :/ 5 years ago
Translation/fr Fix & character in DATABASE_UI.xml to avoid crash when launchint Thea2 5 years ago
.gitignore remove Translation files from default gitignore as this IS the point of this repo 5 years ago
LICENSE Initial commit 5 years ago
README.md Add quick procedure how to extract DATABASES 5 years ago
extract_module.sh Add some more comments to clarify the code, and solve the bug that break newline when txt has space in its name 5 years ago
rollback_database.sh Convert properly & to & in databases modules, fix #3 5 years ago
rollback_module.sh Add some quote in rollback script to deal with files using space in name 5 years ago
thea2_v0.1-ea_fr.zip snapshot fr translation 16/01/19 5 years ago

README.md

thea2Shattering_i18n_tools

Scripting tools to interact with Thea 2 The Shattering's files in order to translate them easily.

Databases

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

Modules

To convert from txt :

for text in Modules/game_files/*; do ./extract_module.sh "${text}"; done