Ignore "cns11643_stroke" file when reading /usr/i18n/locales/*

Prevents KP from getting stuck in a while loop.
parent ba5000c9
......@@ -73,7 +73,7 @@ class Locale:
## PASS 1: loop through /usr/share/i18n/locales/ and get description for every locale
for _file in os.listdir("/usr/share/i18n/locales/"):
if "translit" in _file or "iso14651_t1" in _file or "POSIX" in _file: continue
if "translit" in _file or "iso14651_t1" in _file or "POSIX" in _file or "cns11643_stroke" in _file: continue
with open(os.path.join("/usr/share/i18n/locales/", _file)) as f:
language = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment