From 74b3c925090e46f4ae0c180e7339a03fb6a4628e Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 3 May 2018 14:29:30 -0400 Subject: locale keys sorted, allow beautification even if len doesn't match --- www/lang/checklang.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'www/lang/checklang.py') 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": -- cgit v1.2.3