validate_po.py: Process locales in alphabetical order

This commit is contained in:
Sebastian Pipping 2023-08-03 16:47:01 +02:00
parent 37f90be911
commit 40b96c1348
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ def validate_po(locale: str, path: str) -> bool:
success = True
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")
if os.path.isfile(path):
success = validate_po(locale, path) and success