summaryrefslogtreecommitdiff
path: root/www/lang/checklang.py
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-05-03 14:29:30 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-05-03 14:29:30 -0400
commit74b3c925090e46f4ae0c180e7339a03fb6a4628e (patch)
tree3c69e152c70e20749c7e241f3aad59d9bbca9478 /www/lang/checklang.py
parent17df46da9468af5a3477f67159233d3fa2eeff75 (diff)
locale keys sorted, allow beautification even if len doesn't match
Diffstat (limited to 'www/lang/checklang.py')
-rwxr-xr-xwww/lang/checklang.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/lang/checklang.py b/www/lang/checklang.py
index 3cfeafc7..2f56a0f3 100755
--- a/www/lang/checklang.py
+++ b/www/lang/checklang.py
@@ -47,6 +47,7 @@ def beautify(fi,ki):
#Compares keys in language file
def compare(fname):
+
beaut="no"
global globGood, globBad,globOverwrite, globFile, globBeautify
with open (i) as json_data:
@@ -67,6 +68,8 @@ def compare(fname):
else:
status = "ERROR"
globBad+=1
+ if globBeautify and (globFile == fname or globFile == ""):
+ beaut="YES"
print("\n-------Checking:%s:%s, beautify:%s---------" % (fname,status,beaut))
print("master keys:%d, %s keys:%d" % (len(origKeys), i, len(newKeys)))
if beaut=="YES":