[r22710]GrampsLocale: Don't set to 'C' if LANG is en_US

Not required, Gtk has an 'en' translation

Ref. http://www.gramps-project.org/bugs/view.php?id=6867

svn: r22711
This commit is contained in:
John Ralls 2013-07-21 20:24:40 +00:00
parent 7d9f42dc90
commit 7922f1ad61

View File

@ -437,8 +437,7 @@ class GrampsLocale(object):
lang = '.'.join((check_lang[0], 'UTF-8')) lang = '.'.join((check_lang[0], 'UTF-8'))
os.environ["LANG"] = lang os.environ["LANG"] = lang
os.environ["LANGUAGE"] = ':'.join(['C' if l in ('en', 'en_US') else l os.environ["LANGUAGE"] = ':'.join([l for l in self.language])
for l in self.language])
# GtkBuilder uses GLib's g_dgettext wrapper, which oddly is bound # GtkBuilder uses GLib's g_dgettext wrapper, which oddly is bound
# with locale instead of gettext. Win32 doesn't support bindtextdomain. # with locale instead of gettext. Win32 doesn't support bindtextdomain.