summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-21 13:26:41 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-21 13:26:41 -0300
commit9b5018b649bd0b722f62ade5542adbc5b61600b9 (patch)
tree1cfd85ba35a5da864d74019f79eaebdfe44f8c8e
parent30c0bd2222a89123c61c95be822140a58c0e5b48 (diff)
downloadtools-9b5018b649bd0b722f62ade5542adbc5b61600b9.tar.gz
tools-9b5018b649bd0b722f62ade5542adbc5b61600b9.tar.bz2
tools-9b5018b649bd0b722f62ade5542adbc5b61600b9.tar.xz
tools-9b5018b649bd0b722f62ade5542adbc5b61600b9.zip
Fix updatelang script
-rwxr-xr-xweb/updatelang.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/updatelang.py b/web/updatelang.py
index 5bde56a..bac1be1 100755
--- a/web/updatelang.py
+++ b/web/updatelang.py
@@ -29,7 +29,7 @@ def populate():
for x in langs:
files[i][x]={}
- print(str(files))
+ #print(str(files))
# Creates/Loads stuff
@@ -105,12 +105,11 @@ def readPoFile(nf, lg):
ctx=line.replace('"\n','').replace('\\"','"').replace('msgid "', "")
if "msgstr " in line and ctx != "":
if line != 'msgstr ""\n':
- print("Recording")
files[nf][lg][ctx]=line.replace('"\n', '').replace('\\"','"').replace('msgstr "', "")
- print(str(files[nf][lg]))
else:
files[nf][lg][ctx]=ctx
ctx=""
+
a.close()
def writeLocal(nf, lg):