diff --git a/gajim/common/i18n.py b/gajim/common/i18n.py index 8356265b3..1ecd9c49e 100644 --- a/gajim/common/i18n.py +++ b/gajim/common/i18n.py @@ -136,7 +136,11 @@ if hasattr(locale, 'bindtextdomain'): gettext.textdomain(DOMAIN) gettext.install(DOMAIN, _localedir) -_ = gettext.translation(DOMAIN, _localedir).gettext + +try: + _ = gettext.translation(DOMAIN, _localedir).gettext +except OSError: + _ = gettext.gettext if gettext._translations: _translations = list(gettext._translations.values())[0]