Browse Source

Add quick procedure how to extract DATABASES

master
LecygneNoir 5 years ago
parent
commit
6a30c3d854
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      README.md

+ 8
- 1
README.md View File

@ -2,6 +2,14 @@
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
@ -11,6 +19,5 @@ To convert from txt :
```
for text in Modules/game_files/*; do ./extract_module.sh "${text}"; done
for text in Modules/pot/*; do mv "${text}" "${text}.ori"; msguniq --no-wrap "${text}.ori" > "${text}"; rm "${text}.ori"; done
```

Loading…
Cancel
Save