From fcdf58e3217bd7cacee6a3cca0c82f24107e9970 Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Fri, 2 Sep 2011 21:23:14 +0300
Subject: [PATCH] do not translate plugins config vars

---
 plugins/banner_tweaks/plugin.py            | 10 +++++-----
 plugins/google_translation/plugin.py       |  8 ++++----
 plugins/length_notifier/length_notifier.py |  6 +++---
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/plugins/banner_tweaks/plugin.py b/plugins/banner_tweaks/plugin.py
index befb72d93..b3d9dcda4 100644
--- a/plugins/banner_tweaks/plugin.py
+++ b/plugins/banner_tweaks/plugin.py
@@ -53,11 +53,11 @@ class BannerTweaksPlugin(GajimPlugin):
         }
 
         self.config_default_values = {
-            'show_banner_image': (True, _('If True, Gajim will display a status icon in the banner of chat windows.')),
-            'show_banner_online_msg': (True, _('If True, Gajim will display the status message of the contact in the banner of chat windows.')),
-            'show_banner_resource': (False, _('If True, Gajim will display the resource name of the contact in the banner of chat windows.')),
-            'banner_small_fonts': (False, _('If True, Gajim will use small fonts for contact name and resource name in the banner of chat windows.')),
-            'old_chat_avatar_height': (52, _('chat_avatar_height value before plugin was activated')),
+            'show_banner_image': (True, 'If True, Gajim will display a status icon in the banner of chat windows.'),
+            'show_banner_online_msg': (True, 'If True, Gajim will display the status message of the contact in the banner of chat windows.'),
+            'show_banner_resource': (False, 'If True, Gajim will display the resource name of the contact in the banner of chat windows.'),
+            'banner_small_fonts': (False, 'If True, Gajim will use small fonts for contact name and resource name in the banner of chat windows.'),
+            'old_chat_avatar_height': (52, 'chat_avatar_height value before plugin was activated'),
         }
 
     @log_calls('BannerTweaksPlugin')
diff --git a/plugins/google_translation/plugin.py b/plugins/google_translation/plugin.py
index 9be29a8ef..faa198560 100644
--- a/plugins/google_translation/plugin.py
+++ b/plugins/google_translation/plugin.py
@@ -48,14 +48,14 @@ class GoogleTranslationPlugin(GajimPlugin):
         #self.gui_extension_points = {}
         self.config_default_values = {
             'from_lang' :
-                (u'en', _(u'Language of text to be translated')),
+                (u'en', u'Language of text to be translated'),
             'to_lang' :
-                (u'fr', _(u'Language to which translation will be made')),
+                (u'fr', u'Language to which translation will be made'),
             'user_agent' :
                 (u'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) '
                 'Gecko/20080213 Firefox/2.0.0.11',
-                _(u'User Agent data to be used with urllib2 '
-                'when connecting to Google Translate service'))}
+                u'User Agent data to be used with urllib2 '
+                'when connecting to Google Translate service')}
 
         #self.events_handlers = {}
 
diff --git a/plugins/length_notifier/length_notifier.py b/plugins/length_notifier/length_notifier.py
index 905df6f68..6c8f1ce12 100644
--- a/plugins/length_notifier/length_notifier.py
+++ b/plugins/length_notifier/length_notifier.py
@@ -43,9 +43,9 @@ class LengthNotifierPlugin(GajimPlugin):
                                                   self.disconnect_from_chat_control)
         }
 
-        self.config_default_values = {'MESSAGE_WARNING_LENGTH' : (140, _('Message length at which notification is invoked.')),
-                                                                  'WARNING_COLOR' : ('#F0DB3E', _('Background color of text entry field in chat window when notification is invoked.')),
-                                                                  'JIDS' : ([], _('JabberIDs that plugin should be used with (eg. restrict only to one microblogging bot). If empty plugin is used with every JID. [not implemented]'))
+        self.config_default_values = {'MESSAGE_WARNING_LENGTH' : (140, 'Message length at which notification is invoked.'),
+                                                                  'WARNING_COLOR' : ('#F0DB3E', 'Background color of text entry field in chat window when notification is invoked.'),
+                                                                  'JIDS' : ([], 'JabberIDs that plugin should be used with (eg. restrict only to one microblogging bot). If empty plugin is used with every JID. [not implemented]')
                                                                  }
 
     @log_calls('LengthNotifierPlugin')
-- 
GitLab