summaryrefslogtreecommitdiff
path: root/www/lang/checklang.py
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-06-16 12:25:30 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-06-16 12:25:30 -0400
commitdf13f5fbd9f9bd9e38789f925e2b39f129bacf36 (patch)
treeb60e5a9b8195a40e3e4e5d9052eab9ee1090f6cc /www/lang/checklang.py
parentf40be595159f1bb17ad9c839bd25a9fa48fd3f2e (diff)
added sorting and other bug fixes
Former-commit-id: 368a3d3c66742308e3439b65b1eda93eb9822c71
Diffstat (limited to 'www/lang/checklang.py')
-rwxr-xr-xwww/lang/checklang.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/lang/checklang.py b/www/lang/checklang.py
index d83193c0..e0ba484a 100755
--- a/www/lang/checklang.py
+++ b/www/lang/checklang.py
@@ -31,8 +31,8 @@ def beautify(fi,ki):
print "Beautifying %s, writing to %s" % (fi,prefix+fi)
w = len (max(ki, key=len))
pretty=[]
- for k,v in ki.iteritems():
- line = " \"%s\"%s:\"%s\"" %(k,' '*(w-len(k)+1),v)
+ for k in sorted(ki):
+ line = " \"%s\"%s:\"%s\"" %(k,' '*(w-len(k)+1),ki[k])
pretty.append(line)
pFh=open (prefix+fi,"w")
pFh.write("{\n")
@@ -57,7 +57,7 @@ def compare (fname):
if len(diffOrig)==0 and len (diffNew)==0:
status = "GOOD"
globGood+=1
- if globBeautify and globFile == fname:
+ if globBeautify and globFile == fname or globFile == "":
beaut="YES"
else:
status = "ERROR"