summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-06 13:58:36 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-06 13:58:36 +0300
commit6921ed073b650df0f4281b20def9efec07b258bb (patch)
treec642b8158f6e23e93e848fd05bc73e98bb3ff607 /lang
parent9cfd6be15a6a805c34620df010bf2621e3fa3f41 (diff)
downloadtools-6921ed073b650df0f4281b20def9efec07b258bb.tar.gz
tools-6921ed073b650df0f4281b20def9efec07b258bb.tar.bz2
tools-6921ed073b650df0f4281b20def9efec07b258bb.tar.xz
tools-6921ed073b650df0f4281b20def9efec07b258bb.zip
lang: load translations from in dir and save new po files into out dir.
Diffstat (limited to 'lang')
-rwxr-xr-xlang/converttopo.py2
-rw-r--r--lang/in/.gitignore (renamed from lang/po/.gitignore)0
-rw-r--r--lang/out/.gitignore1
-rwxr-xr-xlang/updatelang.py2
4 files changed, 3 insertions, 2 deletions
diff --git a/lang/converttopo.py b/lang/converttopo.py
index 29dadcc..1e6332d 100755
--- a/lang/converttopo.py
+++ b/lang/converttopo.py
@@ -90,5 +90,5 @@ def saveFile(path, name):
rootPath = "../../server-data"
loadFiles(rootPath + "/langs")
-saveFiles("po")
+saveFiles("out")
diff --git a/lang/po/.gitignore b/lang/in/.gitignore
index 6d609ce..6d609ce 100644
--- a/lang/po/.gitignore
+++ b/lang/in/.gitignore
diff --git a/lang/out/.gitignore b/lang/out/.gitignore
new file mode 100644
index 0000000..6d609ce
--- /dev/null
+++ b/lang/out/.gitignore
@@ -0,0 +1 @@
+*.po
diff --git a/lang/updatelang.py b/lang/updatelang.py
index 37579d8..040fc04 100755
--- a/lang/updatelang.py
+++ b/lang/updatelang.py
@@ -278,7 +278,7 @@ loadItemDb(rootPath + "db/re")
collectStrings(rootPath + "/npc")
loadFiles(rootPath + "/langs")
addMissingLines()
-loadPoFiles("new");
+loadPoFiles("in");
#dumpTranslations();
sorting()
saveFiles(rootPath + "/langs")