7851: translations don't show in many labels

Ensure python text domain gets the right encoding.

(cherry picked from commit 65dbb1bd46)
This commit is contained in:
John Ralls 2014-06-23 20:16:56 -07:00
parent 680301de90
commit 23df099e41

View File

@ -474,7 +474,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):
"""