validate_po.py: Process locales in alphabetical order
This commit is contained in:
parent
37f90be911
commit
40b96c1348
|
@ -34,7 +34,7 @@ def validate_po(locale: str, path: str) -> bool:
|
||||||
|
|
||||||
success = True
|
success = True
|
||||||
locales = os.listdir('safeeyes/config/locale')
|
locales = os.listdir('safeeyes/config/locale')
|
||||||
for locale in locales:
|
for locale in sorted(locales):
|
||||||
path = os.path.join('safeeyes/config/locale', locale, "LC_MESSAGES/safeeyes.po")
|
path = os.path.join('safeeyes/config/locale', locale, "LC_MESSAGES/safeeyes.po")
|
||||||
if os.path.isfile(path):
|
if os.path.isfile(path):
|
||||||
success = validate_po(locale, path) and success
|
success = validate_po(locale, path) and success
|
||||||
|
|
Loading…
Reference in New Issue