diff --git a/gajim/common/i18n.py b/gajim/common/i18n.py index 2a2867f91..949719fb8 100644 --- a/gajim/common/i18n.py +++ b/gajim/common/i18n.py @@ -68,7 +68,10 @@ def initialize_lang(): global LANG try: # en_US, fr_FR, el_GR etc.. - LANG = locale.getdefaultlocale()[0] + default = locale.getdefaultlocale()[0] + if default is None: + # LC_ALL=C + return LANG = LANG[:2] except (ValueError, locale.Error): pass