summaryrefslogtreecommitdiff
path: root/lang_client
diff options
context:
space:
mode:
Diffstat (limited to 'lang_client')
-rw-r--r--lang_client/clientdata-beta.pot2
-rw-r--r--lang_client/clientdata-dict.pot50
-rwxr-xr-xlang_client/createpots.sh6
-rw-r--r--lang_client/its/texts.xml7
-rwxr-xr-xlang_client/processtmx.sh6
5 files changed, 70 insertions, 1 deletions
diff --git a/lang_client/clientdata-beta.pot b/lang_client/clientdata-beta.pot
index cafc132..cd25671 100644
--- a/lang_client/clientdata-beta.pot
+++ b/lang_client/clientdata-beta.pot
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2017-04-04 17:53+0300\n"
+"POT-Creation-Date: 2017-04-05 00:52+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/lang_client/clientdata-dict.pot b/lang_client/clientdata-dict.pot
new file mode 100644
index 0000000..3f1fe03
--- /dev/null
+++ b/lang_client/clientdata-dict.pot
@@ -0,0 +1,50 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2017-04-05 00:52+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. (itstool) path: texts/text
+#: texts.xml:6
+msgid "hello"
+msgstr ""
+
+#. (itstool) path: texts/text
+#: texts.xml:7
+msgid "bye"
+msgstr ""
+
+#. (itstool) path: texts/text
+#: texts.xml:8
+msgid "follow me"
+msgstr ""
+
+#. (itstool) path: texts/text
+#: texts.xml:9
+msgid "follow"
+msgstr ""
+
+#. (itstool) path: texts/text
+#: texts.xml:10
+msgid "stop"
+msgstr ""
+
+#. (itstool) path: texts/text
+#: texts.xml:11
+msgid "help"
+msgstr ""
+
+#. (itstool) path: texts/text
+#: texts.xml:12
+msgid "go away"
+msgstr ""
+
+#. (itstool) path: texts/text
+#: texts.xml:13
+msgid "bot"
+msgstr ""
diff --git a/lang_client/createpots.sh b/lang_client/createpots.sh
index 5f1bf64..204168b 100755
--- a/lang_client/createpots.sh
+++ b/lang_client/createpots.sh
@@ -8,6 +8,10 @@ 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
@@ -29,6 +33,7 @@ its2 skills
its2 skillunits
its2 stats
its2 status-effects
+its2dict texts
cd $DIR
@@ -40,3 +45,4 @@ itstool -o pot/deadmessages1.pot tmp/deadmessages.xml
find ../../client-data/maps -type f -name "*.tmx" -exec ./processtmx.sh {} \;
msgcat pot/*.pot > clientdata-beta.pot
+msgcat dict/*.pot > clientdata-dict.pot
diff --git a/lang_client/its/texts.xml b/lang_client/its/texts.xml
new file mode 100644
index 0000000..79d4212
--- /dev/null
+++ b/lang_client/its/texts.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Authors: 4144
+Copyright (C) 2010-2017 Evol Online -->
+
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
+ <its:translateRule selector="//*" translate="yes"/>
+</its:rules>
diff --git a/lang_client/processtmx.sh b/lang_client/processtmx.sh
new file mode 100755
index 0000000..235eef4
--- /dev/null
+++ b/lang_client/processtmx.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+export name=$1
+export name=${name##*/}
+
+itstool -o pot/map${name}.pot -i its/tmx.xml $1