set new translation domain for triggers plugin and whiteboard plugin

This commit is contained in:
Denis Fomin 2011-09-02 20:56:34 +03:00
parent 42ec6b60b2
commit 370965f685
2 changed files with 2 additions and 3 deletions

View File

@ -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):
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')

View File

@ -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):
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()