translation fix

This commit is contained in:
Denis Fomin
2011-08-30 15:49:35 +03:00
parent a8598c30b5
commit aac3dc1f6f
2 changed files with 2 additions and 12 deletions

View File

@@ -5,7 +5,6 @@ import pango
import re import re
import os import os
import time import time
import gettext
import locale import locale
import urllib import urllib
from string import upper from string import upper
@@ -20,16 +19,6 @@ from conversation_textview import TextViewImage
import gtkgui_helpers import gtkgui_helpers
import common.xmpp 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): class JuickPlugin(GajimPlugin):
@log_calls('JuickPlugin') @log_calls('JuickPlugin')
@@ -556,7 +545,7 @@ class JuickPluginConfigDialog(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('JuickPlugin') 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,
['vbox1']) ['vbox1'])
self.checkbutton = self.xml.get_object('checkbutton') self.checkbutton = self.xml.get_object('checkbutton')

View File

@@ -19,6 +19,7 @@ except:
class WrongLayoutPlugin(GajimPlugin): class WrongLayoutPlugin(GajimPlugin):
description = _('Press alt+r to convert chars typed in wrong layout Rus<>Eng')
@log_calls('WrongLayoutPlugin') @log_calls('WrongLayoutPlugin')
def init(self): def init(self):
self.config_dialog = None self.config_dialog = None