diff options
author | Denis Fomin <fominde@gmail.com> | 2011-08-30 16:49:35 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2011-08-30 16:49:35 +0400 |
commit | aac3dc1f6fe4edf7e6c3effc1b48cc0dd5fc8881 (patch) | |
tree | ed6540cf9604b605b4e891d384218af259465466 | |
parent | a8598c30b5bd53a6859cf330190d8e92f49c4c24 (diff) |
translation fix
-rw-r--r-- | juick/plugin.py | 13 | ||||
-rw-r--r-- | wrong_layout/plugin.py | 1 |
2 files changed, 2 insertions, 12 deletions
diff --git a/juick/plugin.py b/juick/plugin.py index 2b9212d..4a1246c 100644 --- a/juick/plugin.py +++ b/juick/plugin.py @@ -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') diff --git a/wrong_layout/plugin.py b/wrong_layout/plugin.py index d747bd0..7ce20a1 100644 --- a/wrong_layout/plugin.py +++ b/wrong_layout/plugin.py @@ -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 |