From 1537eed07925de9cbfea5554c52325050ddd373e Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 23 Jun 2014 20:16:56 -0700 Subject: [PATCH] 7851: translations don't show in many labels Ensure python text domain gets the right encoding. (cherry picked from commit 65dbb1bd46f6bb632e31a262c1486c49fc024157) --- gramps/gen/utils/grampslocale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index b82b08e3c..3f378ebb4 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -481,7 +481,8 @@ class GrampsLocale(object): if not sys.platform == 'win32': locale.bindtextdomain(self.localedomain, self.localedir) else: - self._win_bindtextdomain(self.localedomain, self.localedir) + self._win_bindtextdomain(self.localedomain, + self.localedir.encode('utf-8')) def _init_secondary_locale(self): """