Skip to content
Snippets Groups Projects
Commit 370965f6 authored by Dicson's avatar Dicson
Browse files

set new translation domain for triggers plugin and whiteboard plugin

parent 42ec6b60
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,6 @@ from common import gajim ...@@ -26,7 +26,6 @@ from common import gajim
from plugins import GajimPlugin from plugins import GajimPlugin
from plugins.helpers import log_calls, log from plugins.helpers import log_calls, log
from plugins.gui import GajimPluginConfigDialog from plugins.gui import GajimPluginConfigDialog
from common import i18n
from common import ged from common import ged
from common import helpers from common import helpers
...@@ -222,6 +221,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog): ...@@ -222,6 +221,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
self.GTK_BUILDER_FILE_PATH = self.plugin.local_file_path( self.GTK_BUILDER_FILE_PATH = self.plugin.local_file_path(
'config_dialog.ui') 'config_dialog.ui')
self.xml = gtk.Builder() self.xml = gtk.Builder()
self.xml.set_translation_domain('gajim_plugins')
self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH, self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH,
['vbox', 'liststore1', 'liststore2']) ['vbox', 'liststore1', 'liststore2'])
vbox = self.xml.get_object('vbox') vbox = self.xml.get_object('vbox')
......
...@@ -27,7 +27,6 @@ except: ...@@ -27,7 +27,6 @@ except:
HAS_GOOCANVAS = False HAS_GOOCANVAS = False
from common.xmpp import Node from common.xmpp import Node
from common import gajim from common import gajim
from common import i18n
from dialogs import FileChooserDialog from dialogs import FileChooserDialog
''' '''
...@@ -40,7 +39,7 @@ class Whiteboard(object): ...@@ -40,7 +39,7 @@ class Whiteboard(object):
self.plugin = plugin self.plugin = plugin
file_path = plugin.local_file_path('whiteboard_widget.ui') file_path = plugin.local_file_path('whiteboard_widget.ui')
xml = gtk.Builder() xml = gtk.Builder()
xml.set_translation_domain(i18n.APP) self.xml.set_translation_domain('gajim_plugins')
xml.add_from_file(file_path) xml.add_from_file(file_path)
self.hbox = xml.get_object('whiteboard_hbox') self.hbox = xml.get_object('whiteboard_hbox')
self.canevas = goocanvas.Canvas() self.canevas = goocanvas.Canvas()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment