diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-05 19:18:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-05 19:18:09 +0300 |
commit | ea6663e625ab1028128ee609c793f76b53d6b6ff (patch) | |
tree | 52f90f4e7c37f078624bc1de3db72baaf25e4a0f | |
parent | e0ce0198071cdf2441a7af9bc497f6018445b126 (diff) | |
download | evol-tools-ea6663e625ab1028128ee609c793f76b53d6b6ff.tar.gz evol-tools-ea6663e625ab1028128ee609c793f76b53d6b6ff.tar.bz2 evol-tools-ea6663e625ab1028128ee609c793f76b53d6b6ff.tar.xz evol-tools-ea6663e625ab1028128ee609c793f76b53d6b6ff.zip |
lang_client: add clientdata-dict.pot and scripts for update it.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | lang_client/clientdata-beta.pot | 2 | ||||
-rw-r--r-- | lang_client/clientdata-dict.pot | 50 | ||||
-rwxr-xr-x | lang_client/createpots.sh | 6 | ||||
-rw-r--r-- | lang_client/its/texts.xml | 7 | ||||
-rwxr-xr-x | lang_client/processtmx.sh | 6 |
6 files changed, 71 insertions, 1 deletions
@@ -26,6 +26,7 @@ lang/new # lang client lang_client/tmp lang_client/pot +lang_client/dict # tx tx 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 |