set new translation domaine for plugins
This commit is contained in:
parent
2b11c7f8d9
commit
42ec6b60b2
3 changed files with 3 additions and 6 deletions
|
@ -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):
|
||||||
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.
|
||||||
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):
|
||||||
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.
|
||||||
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):
|
||||||
@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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue