[gnome-builder] autotools-templates: use Ide.gettext()



commit b45e3d6054e2eaecb082ea9c23dfb86e66207429
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 11 15:22:38 2016 -0700

    autotools-templates: use Ide.gettext()
    
    This allows us to use the same translation domain from plugins
    as we are using in the C libraries.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772733

 .../autotools_templates/__init__.py                |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/autotools-templates/autotools_templates/__init__.py 
b/plugins/autotools-templates/autotools_templates/__init__.py
index fcfbf38..2bba93e 100644
--- a/plugins/autotools-templates/autotools_templates/__init__.py
+++ b/plugins/autotools-templates/autotools_templates/__init__.py
@@ -19,8 +19,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from gettext import gettext as _
-
 import gi
 import os
 
@@ -35,6 +33,8 @@ from gi.repository import GtkSource
 from gi.repository import Peas
 from gi.repository import Template
 
+_ = Ide.gettext
+
 def get_module_data_path(name):
     engine = Peas.Engine.get_default()
     plugin = engine.get_plugin_info('autotools_templates')


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