From 370965f6853e29657ba4b66b6e46dd7bd832da98 Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Fri, 2 Sep 2011 20:56:34 +0300
Subject: [PATCH] set new translation domain for triggers plugin and whiteboard
 plugin

---
 plugins/triggers/triggers.py            | 2 +-
 plugins/whiteboard/whiteboard_widget.py | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/plugins/triggers/triggers.py b/plugins/triggers/triggers.py
index 3b7840234e..bca98263cc 100644
--- a/plugins/triggers/triggers.py
+++ b/plugins/triggers/triggers.py
@@ -26,7 +26,6 @@ from common import gajim
 from plugins import GajimPlugin
 from plugins.helpers import log_calls, log
 from plugins.gui import GajimPluginConfigDialog
-from common import i18n
 from common import ged
 from common import helpers
 
@@ -222,6 +221,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
         self.GTK_BUILDER_FILE_PATH = self.plugin.local_file_path(
             'config_dialog.ui')
         self.xml = gtk.Builder()
+        self.xml.set_translation_domain('gajim_plugins')
         self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH,
             ['vbox', 'liststore1', 'liststore2'])
         vbox = self.xml.get_object('vbox')
diff --git a/plugins/whiteboard/whiteboard_widget.py b/plugins/whiteboard/whiteboard_widget.py
index 8b92b8bfbd..f3837675fa 100644
--- a/plugins/whiteboard/whiteboard_widget.py
+++ b/plugins/whiteboard/whiteboard_widget.py
@@ -27,7 +27,6 @@ except:
     HAS_GOOCANVAS = False
 from common.xmpp import Node
 from common import gajim
-from common import i18n
 from dialogs import FileChooserDialog
 
 '''
@@ -40,7 +39,7 @@ class Whiteboard(object):
         self.plugin = plugin
         file_path = plugin.local_file_path('whiteboard_widget.ui')
         xml = gtk.Builder()
-        xml.set_translation_domain(i18n.APP)
+        self.xml.set_translation_domain('gajim_plugins')
         xml.add_from_file(file_path)
         self.hbox = xml.get_object('whiteboard_hbox')
         self.canevas = goocanvas.Canvas()
-- 
GitLab