Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2011-09-03 10:59:36 +0400
committerDenis Fomin <fominde@gmail.com>2011-09-03 10:59:36 +0400
commit4b37c0c5832d20f5eefcf29fbf1585a223c62287 (patch)
treedc25e9695f02e519d7a129be3f7ca9e75c95011d /wrong_layout
parent4b297ebf7dfda3e64026267f8926967ab51ff495 (diff)
add translatable description
Diffstat (limited to 'wrong_layout')
-rw-r--r--wrong_layout/plugin.py38
1 files changed, 15 insertions, 23 deletions
diff --git a/wrong_layout/plugin.py b/wrong_layout/plugin.py
index 7ce20a1..7277436 100644
--- a/wrong_layout/plugin.py
+++ b/wrong_layout/plugin.py
@@ -2,7 +2,6 @@
import gtk
import os
-import gettext
from common import helpers
from common import gajim
@@ -10,18 +9,11 @@ from plugins import GajimPlugin
from plugins.helpers import log_calls, log
-locale_path = os.path.dirname(__file__) + '/locale'
-try:
- gett = gettext.Catalog('WrongLayout', locale_path)
- _ = gett.gettext
-except:
- pass
-
-
class WrongLayoutPlugin(GajimPlugin):
- description = _('Press alt+r to convert chars typed in wrong layout Rus<>Eng')
@log_calls('WrongLayoutPlugin')
def init(self):
+ self.description = _('Press alt+r to convert chars typed in '
+ 'wrong layout Rus<>Eng')
self.config_dialog = None
self.gui_extension_points = {
'chat_control_base': (self.connect_with_chat_control,
@@ -29,19 +21,19 @@ class WrongLayoutPlugin(GajimPlugin):
self.chat_control = None
self.controls = []
self.dict_eng = {'`': 'ё', 'q': 'й', 'w': 'ц', 'e': 'у', 'r': 'к',
- 't': 'е',
- 'y': 'н', 'u': 'г', 'i': 'ш', 'o': 'щ', 'p': 'з', '[': 'х',
- ']': 'ъ', 'a': 'ф', 's': 'ы', 'd': 'в', 'f': 'а', 'g': 'п',
- 'h': 'р', 'j': 'о', 'k': 'л', 'l': 'д', ';': 'ж', '\'': 'э',
- 'z': 'я', 'x': 'ч', 'c': 'с', 'v': 'м', 'b': 'и', 'n': 'т',
- 'm': 'ь', ',': 'б', '.': 'ю', '/': '.',
- '\\': '\\', '~': 'Ё', '@': '"', '$': ';', '^': ':', '&': '?',
- 'Q': 'Й', 'W': 'Ц', 'E': 'У', 'R': 'К', 'T': 'Е', 'Y': 'Н',
- 'U': 'Г', 'I': 'Ш', 'O': 'Щ', 'P': 'З', '{': 'Х', '}': 'Ъ',
- '|': '/', 'A': 'Ф', 'S': 'Ы', 'D': 'В', 'F': 'А', 'G': 'П',
- 'H': 'Р', 'J': 'О', 'K': 'Л', 'L': 'Д', '"': 'Э', 'Z': 'Я',
- 'X': 'Ч', 'C': 'С', 'V': 'М', 'B': 'И', 'N': 'Т', 'M': 'Ь',
- '<': 'Б', '>': 'Ю', '?': ',', ':': 'Ж'}
+ 't': 'е',
+ 'y': 'н', 'u': 'г', 'i': 'ш', 'o': 'щ', 'p': 'з', '[': 'х',
+ ']': 'ъ', 'a': 'ф', 's': 'ы', 'd': 'в', 'f': 'а', 'g': 'п',
+ 'h': 'р', 'j': 'о', 'k': 'л', 'l': 'д', ';': 'ж', '\'': 'э',
+ 'z': 'я', 'x': 'ч', 'c': 'с', 'v': 'м', 'b': 'и', 'n': 'т',
+ 'm': 'ь', ',': 'б', '.': 'ю', '/': '.',
+ '\\': '\\', '~': 'Ё', '@': '"', '$': ';', '^': ':', '&': '?',
+ 'Q': 'Й', 'W': 'Ц', 'E': 'У', 'R': 'К', 'T': 'Е', 'Y': 'Н',
+ 'U': 'Г', 'I': 'Ш', 'O': 'Щ', 'P': 'З', '{': 'Х', '}': 'Ъ',
+ '|': '/', 'A': 'Ф', 'S': 'Ы', 'D': 'В', 'F': 'А', 'G': 'П',
+ 'H': 'Р', 'J': 'О', 'K': 'Л', 'L': 'Д', '"': 'Э', 'Z': 'Я',
+ 'X': 'Ч', 'C': 'С', 'V': 'М', 'B': 'И', 'N': 'Т', 'M': 'Ь',
+ '<': 'Б', '>': 'Ю', '?': ',', ':': 'Ж'}
self.dict_ru = {}
for key in self.dict_eng.keys():
self.dict_ru[self.dict_eng[key]] = key