diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-06 13:58:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-06 13:58:36 +0300 |
commit | 6921ed073b650df0f4281b20def9efec07b258bb (patch) | |
tree | c642b8158f6e23e93e848fd05bc73e98bb3ff607 /lang | |
parent | 9cfd6be15a6a805c34620df010bf2621e3fa3f41 (diff) | |
download | evol-tools-6921ed073b650df0f4281b20def9efec07b258bb.tar.gz evol-tools-6921ed073b650df0f4281b20def9efec07b258bb.tar.bz2 evol-tools-6921ed073b650df0f4281b20def9efec07b258bb.tar.xz evol-tools-6921ed073b650df0f4281b20def9efec07b258bb.zip |
lang: load translations from in dir and save new po files into out dir.
Diffstat (limited to 'lang')
-rwxr-xr-x | lang/converttopo.py | 2 | ||||
-rw-r--r-- | lang/in/.gitignore (renamed from lang/po/.gitignore) | 0 | ||||
-rw-r--r-- | lang/out/.gitignore | 1 | ||||
-rwxr-xr-x | lang/updatelang.py | 2 |
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") |