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

translation fix

parent a8598c30
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import pango
import re
import os
import time
import gettext
import locale
import urllib
from string import upper
......@@ -20,16 +19,6 @@ from conversation_textview import TextViewImage
import gtkgui_helpers
import common.xmpp
locale_path = os.path.join(os.path.dirname(__file__), 'locales')
if os.name != 'nt':
locale.bindtextdomain('JuickPlugin', locale_path)
try:
gett = gettext.Catalog('JuickPlugin', locale_path)
_ = gett.gettext
except:
pass
class JuickPlugin(GajimPlugin):
@log_calls('JuickPlugin')
......@@ -556,7 +545,7 @@ class JuickPluginConfigDialog(GajimPluginConfigDialog):
self.GTK_BUILDER_FILE_PATH = self.plugin.local_file_path(
'config_dialog.ui')
self.xml = gtk.Builder()
self.xml.set_translation_domain('JuickPlugin')
self.xml.set_translation_domain('gajim_plugins')
self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH,
['vbox1'])
self.checkbutton = self.xml.get_object('checkbutton')
......
......@@ -19,6 +19,7 @@ except:
class WrongLayoutPlugin(GajimPlugin):
description = _('Press alt+r to convert chars typed in wrong layout Rus<>Eng')
@log_calls('WrongLayoutPlugin')
def init(self):
self.config_dialog = None
......
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