summaryrefslogtreecommitdiff
path: root/lang_client/createpots.sh
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-10 00:45:07 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-10 00:45:07 -0300
commitc6095ad062eaa0f5576cfab1c4fe436b90c2fbfe (patch)
tree742dd839971d2aab1f08fd0291af66e6439646ab /lang_client/createpots.sh
downloadtools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.gz
tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.bz2
tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.xz
tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.zip
Add initial tools
Diffstat (limited to 'lang_client/createpots.sh')
-rwxr-xr-xlang_client/createpots.sh50
1 files changed, 50 insertions, 0 deletions
diff --git a/lang_client/createpots.sh b/lang_client/createpots.sh
new file mode 100755
index 0000000..04d6722
--- /dev/null
+++ b/lang_client/createpots.sh
@@ -0,0 +1,50 @@
+#!/usr/bin/env bash
+
+function its {
+ itstool -o ../tools/lang_client/pot/$1.pot $1.xml
+}
+
+function its2 {
+ itstool -o ../tools/lang_client/pot/$1.pot -i ../tools/lang_client/its/$1.xml $1.xml
+}
+
+function its2dict {
+ itstool -o ../tools/lang_client/dict/$1.pot -i ../tools/lang_client/its/$1.xml $1.xml
+}
+
+DIR=`pwd`
+cd ../../client-data
+
+#its2 avatars
+its2 clans
+its2 deadmessages
+its2 emotes
+its2 groups
+its2 homunculuses
+its2 itemcolors
+its2 itemfields
+its2 items
+its2 mercenaries
+its2 monsters
+# disabled for now because here testing strings only
+#its2 npcdialogs
+its2 npcs
+its2 pets
+its quests
+its2 skills
+its2 skillunits
+its2 stats
+its2 status-effects
+its2dict texts
+
+cd $DIR
+
+rm pot/map*.pot
+
+itstool -o pot/manaplus_emotes1.pot tmp/manaplus_emotes.xml
+itstool -o pot/deadmessages1.pot tmp/deadmessages.xml
+
+find ../../client-data/maps -type f -name "*.tmx" -exec ./processtmx.sh {} \;
+
+msgcat pot/*.pot > clientdata.pot
+msgcat dict/*.pot > clientdata-dict.pot