Browse Source

fix extracting databases bugs when developpers use comments to deactivate a key

master
LecygneNoir 5 years ago
parent
commit
c3f95c0240
2 changed files with 1 additions and 5 deletions
  1. +0
    -4
      Database/pot/DATABASE_DES_LOCALIZATION.pot
  2. +1
    -1
      README.md

+ 0
- 4
Database/pot/DATABASE_DES_LOCALIZATION.pot View File

@ -13548,10 +13548,6 @@ msgstr ""
msgid "Every day each character gets 1 XP."
msgstr ""
#. DES_TRAIT_MENTAL_WALL_DES
msgid "All your characters will share an additional pool of 20 Mental Hit Points, divided equally between them."
msgstr ""
#. DES_TRAIT_MENTAL_WALL_DES
msgid "All your followers get +4 mental shielding."
msgstr ""

+ 1
- 1
README.md View File

@ -6,7 +6,7 @@ Scripting tools to interact with Thea 2 The Shattering's files in order to trans
To convert from XML
```bash
grep Key Database/game_files/DATABASE_UI_LOCALIZATION.xml | grep -v "UI_EMPTY" | awk -F'"' '{print "#. "$2"\n" "msgid " "\""$4"\"" "\n" "msgstr " "\"\""}' > /tmp/DATABASE_UI_LOCALIZATION.pot.tmp
grep Key Database/game_files/DATABASE_UI_LOCALIZATION.xml | grep -v "UI_EMPTY" | grep -v "<!--<Entry" | awk -F'"' '{print "#. "$2"\n" "msgid " "\""$4"\"" "\n" "msgstr " "\"\""}' > /tmp/DATABASE_UI_LOCALIZATION.pot.tmp
sed -i 's/\\E/\\\\E/' /tmp/DATABASE_UI_LOCALIZATION.pot.tmp
# Insert header
msgid ""

Loading…
Cancel
Save