diff --git a/src/TransUtils.py b/src/TransUtils.py index 04640a619..ba0b3bd07 100644 --- a/src/TransUtils.py +++ b/src/TransUtils.py @@ -79,7 +79,7 @@ def get_addon_translator(filename, domain='addon'): Assumes filename_dir/locale/LANG/LC_MESSAGES/addon.mo. """ import locale - LANG = locale.getlocale()[0] + LANG = locale.getlocale()[0] or "en" path = os.path.dirname(os.path.abspath(filename)) trans = Translator(LANG) try: