From c8fc88cfe7013ebec05e0007b4489f5a31d32797 Mon Sep 17 00:00:00 2001 From: romjerome Date: Tue, 13 Apr 2021 08:53:04 +0200 Subject: [PATCH] Need to set locale.textdomain under linux (#1198) _build_popup_ui() ignores translated strings without locale.textdomain set. --- gramps/gen/utils/grampslocale.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index a3cd86de4..cbad01494 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -525,6 +525,8 @@ class GrampsLocale: # with locale instead of gettext. Win32 doesn't support bindtextdomain. if self.localedir: if not sys.platform == 'win32': + # bug12278, _build_popup_ui() under linux and macOS + locale.textdomain(self.localedomain) locale.bindtextdomain(self.localedomain, self.localedir) else: self._win_bindtextdomain(self.localedomain.encode('utf-8'),