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 bc6233f681 Update all files for version 370 whith all known bug fixed 1 day ago
Database Add source files from game version 370 (miss Quarry and MiscEncounter2, bugs to be solved) 2 weeks ago
Modules Update all files for version 370 whith all known bug fixed 1 day ago
Translation/fr Update all files for version 370 whith all known bug fixed 1 day ago
.gitignore remove Translation files from default gitignore as this IS the point of this repo 1 month ago
LICENSE Initial commit 2 months ago
README.md Add quick procedure how to extract DATABASES 1 week 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 3 days ago
rollback_database.sh Add more escaping char in the good order to avoid breaking XML quote for Databases 1 day ago
rollback_module.sh Add a $ at the end of the regex to rollback module to avoid breaking syntax. Definitely fix #4 1 day ago
thea2_v0.1-ea_fr.zip snapshot fr translation 16/01/19 1 month 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