From 83e0d9f4de7c368c1e78b950c343cbd973836b7b Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 16 Jan 2018 16:45:54 +1100 Subject: [PATCH] Better match for lang code filter --- install/check_lacked_trans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/check_lacked_trans.py b/install/check_lacked_trans.py index 8ed3636f..2486758e 100644 --- a/install/check_lacked_trans.py +++ b/install/check_lacked_trans.py @@ -78,7 +78,7 @@ def main(): if lang_code == 'all': locale_files = [f for f in files_in(dir, 'share/locale') if f.endswith('.json')] else: - locale_files = [f for f in files_in(dir, 'share/locale') if f.endswith('.json') and lang_code in f] + locale_files = [f for f in files_in(dir, 'share/locale') if f.endswith('%s.json' % lang_code)] for locale_file in locale_files: with codecs.open(locale_file, 'r', encoding='utf-8') as f: trans = json.load(f)