[gedit-plugins] Set translation domain



commit fd80931530fd47c74c66fe015b4754f63e9ae2da
Author: Jordi Mas <jmas softcatala org>
Date:   Thu Jul 13 10:05:47 2017 +0200

    Set translation domain

 plugins/translate/translate/preferences.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/translate/translate/preferences.py b/plugins/translate/translate/preferences.py
index d9fbb3a..17b50e2 100644
--- a/plugins/translate/translate/preferences.py
+++ b/plugins/translate/translate/preferences.py
@@ -19,6 +19,8 @@
 
 import os
 from gi.repository import Gio, Gtk
+import gettext
+from gpdefs import *
 
 
 class Preferences(object):
@@ -37,6 +39,7 @@ class Preferences(object):
         self._settings = Gio.Settings.new(self.TRANSLATE_KEY_BASE)
         self._ui_path = os.path.join(datadir, 'ui', 'preferences.ui')
         self._ui = Gtk.Builder()
+        self._ui.set_translation_domain(GETTEXT_PACKAGE)
         self._ui.add_from_file(self._ui_path)
 
         self.init_radiobuttons()


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