Fix missing UI translations on flatpak

This commit is contained in:
André Apitzsch 2018-10-10 19:33:43 +02:00
parent f5337c6890
commit 8a0ed4af5b
1 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,8 @@ for dir_ in iter_locale_dirs():
try: try:
_translation = gettext.translation(DOMAIN, dir_) _translation = gettext.translation(DOMAIN, dir_)
_ = _translation.gettext _ = _translation.gettext
if hasattr(locale, 'bindtextdomain'):
locale.bindtextdomain(DOMAIN, dir_) # type: ignore
except OSError: except OSError:
continue continue
else: else: