From 40b96c1348410781ea2e1c2dd43145d3b317520f Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Thu, 3 Aug 2023 16:47:01 +0200 Subject: [PATCH] validate_po.py: Process locales in alphabetical order --- validate_po.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate_po.py b/validate_po.py index b0a0e40..ab0b475 100644 --- a/validate_po.py +++ b/validate_po.py @@ -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