[gnome-builder] npm: fix gettext usage



commit 8e00c2077610b027736f00d08044993be12ac953
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 10 10:39:50 2019 -0800

    npm: fix gettext usage

 po/POTFILES.in                | 1 +
 src/plugins/npm/npm_plugin.py | 2 ++
 2 files changed, 3 insertions(+)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 45a8c789f..597f3fb3f 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -277,6 +277,7 @@ src/plugins/messages/gbp-messages-panel.ui
 src/plugins/modelines/gbp-modelines-file-settings.c
 src/plugins/newcomers/gbp-newcomers-section.ui
 src/plugins/notification/ide-notification-addin.c
+src/plugins/npm/npm_plugin.py
 src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
 src/plugins/phpize/phpize_plugin.py
 src/plugins/project-tree/gbp-new-file-popover.c
diff --git a/src/plugins/npm/npm_plugin.py b/src/plugins/npm/npm_plugin.py
index d0c115105..bc57aecc6 100644
--- a/src/plugins/npm/npm_plugin.py
+++ b/src/plugins/npm/npm_plugin.py
@@ -32,6 +32,8 @@ from gi.repository import Ide
 
 Ide.g_file_add_ignored_pattern('node_modules')
 
+_ = Ide.gettext
+
 class NPMBuildSystemDiscovery(Ide.SimpleBuildSystemDiscovery):
     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)


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