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 4c834e4385 Add more escaping char in the good order to avoid breaking XML quote for Databases 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 Add more escaping char in the good order to avoid breaking XML quote for Databases 5 years ago
rollback_module.sh Add a $ at the end of the regex to rollback module to avoid breaking syntax. Definitely fix #4 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