From 9203283081d255e20dc78839398fed9e038931b2 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Tue, 18 Sep 2018 20:24:53 -0400 Subject: use ugettext() instead of gettext() --- lib/i18n.py | 2 +- lib/inx/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/i18n.py b/lib/i18n.py index 045fa1b2..98f63ec1 100644 --- a/lib/i18n.py +++ b/lib/i18n.py @@ -30,7 +30,7 @@ def localize(languages=None): global translation, _ translation = gettext.translation("inkstitch", locale_dir, fallback=True) - _ = translation.gettext + _ = translation.ugettext _set_locale_dir() diff --git a/lib/inx/utils.py b/lib/inx/utils.py index 54b37c58..a22b1892 100644 --- a/lib/inx/utils.py +++ b/lib/inx/utils.py @@ -44,7 +44,7 @@ def iterate_inx_locales(): # generate menu items for this language in Inkscape's "Extensions" # menu. magic_string = N_("Generate INX files") - translated_magic_string = translation.gettext(magic_string) + translated_magic_string = translation.ugettext(magic_string) if translated_magic_string != magic_string or locale == "en_US": current_translation = translation -- cgit v1.2.3