Skip to content
Snippets Groups Projects
Commit 42ec6b60 authored by Dicson's avatar Dicson
Browse files

set new translation domaine for plugins

parent 2b11c7f8
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,6 @@ import sys ...@@ -34,7 +34,6 @@ import sys
import gtk import gtk
import gobject import gobject
import message_control import message_control
from common import i18n
from common import gajim from common import gajim
from common import helpers from common import helpers
...@@ -159,7 +158,7 @@ class BannerTweaksPluginConfigDialog(GajimPluginConfigDialog): ...@@ -159,7 +158,7 @@ class BannerTweaksPluginConfigDialog(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(i18n.APP) 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,
['banner_tweaks_config_vbox']) ['banner_tweaks_config_vbox'])
self.config_vbox = self.xml.get_object('banner_tweaks_config_vbox') self.config_vbox = self.xml.get_object('banner_tweaks_config_vbox')
......
...@@ -27,7 +27,6 @@ Message length notifier plugin. ...@@ -27,7 +27,6 @@ Message length notifier plugin.
import sys import sys
import gtk import gtk
from common import i18n
from plugins import GajimPlugin from plugins import GajimPlugin
from plugins.helpers import log, log_calls from plugins.helpers import log, log_calls
...@@ -112,7 +111,7 @@ class LengthNotifierPluginConfigDialog(GajimPluginConfigDialog): ...@@ -112,7 +111,7 @@ class LengthNotifierPluginConfigDialog(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(i18n.APP) 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,
['length_notifier_config_table']) ['length_notifier_config_table'])
self.config_table = self.xml.get_object('length_notifier_config_table') self.config_table = self.xml.get_object('length_notifier_config_table')
......
...@@ -27,7 +27,6 @@ Roster buttons plug-in. ...@@ -27,7 +27,6 @@ Roster buttons plug-in.
import sys import sys
import gtk import gtk
from common import i18n
from common import gajim from common import gajim
from plugins import GajimPlugin from plugins import GajimPlugin
...@@ -46,7 +45,7 @@ class RosterButtonsPlugin(GajimPlugin): ...@@ -46,7 +45,7 @@ class RosterButtonsPlugin(GajimPlugin):
@log_calls('RosterButtonsPlugin') @log_calls('RosterButtonsPlugin')
def activate(self): def activate(self):
self.xml = gtk.Builder() self.xml = gtk.Builder()
self.xml.set_translation_domain(i18n.APP) 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,
['roster_buttons_buttonbox']) ['roster_buttons_buttonbox'])
self.buttonbox = self.xml.get_object('roster_buttons_buttonbox') self.buttonbox = self.xml.get_object('roster_buttons_buttonbox')
......
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