[gedit-plugins/sessionsaver] Fixes gettext import



commit f0d8730c0dde8751ea25b0fd54c2f785c67c62cf
Author: Jordi Mas <jmas softcatala org>
Date:   Tue Jun 25 09:32:14 2019 +0200

    Fixes gettext import

 plugins/sessionsaver/sessionsaver/dialogs.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plugins/sessionsaver/sessionsaver/dialogs.py b/plugins/sessionsaver/sessionsaver/dialogs.py
index 5d8b064..d338339 100644
--- a/plugins/sessionsaver/sessionsaver/dialogs.py
+++ b/plugins/sessionsaver/sessionsaver/dialogs.py
@@ -6,13 +6,15 @@
 from gi.repository import GObject, Gtk, Gedit
 import os.path
 import gettext
-
+from gpdefs import GETTEXT_PACKAGE
 from .store import Session
 
+
 try:
-    from .gpdefs import *
-    gettext.bindtextdomain(GETTEXT_PACKAGE, GP_LOCALEDIR)
-    _ = lambda s: gettext.dgettext(GETTEXT_PACKAGE, s);
+    import gettext
+    gettext.bindtextdomain('gedit-plugins')
+    gettext.textdomain('gedit-plugins')
+    _ = gettext.gettext
 except:
     _ = lambda s: s
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]