Skip to content
Snippets Groups Projects
Commit 90a44f61 authored by André's avatar André Committed by Philipp Hörist
Browse files

Fix missing UI translations on flatpak

parent 588e5ede
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,8 @@ for dir_ in iter_locale_dirs():
try:
_translation = gettext.translation(DOMAIN, dir_)
_ = _translation.gettext
if hasattr(locale, 'bindtextdomain'):
locale.bindtextdomain(DOMAIN, dir_) # type: ignore
except OSError:
continue
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment