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

make plugins description translatable

parent 1c7968c7
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,8 @@ class AcronymsExpanderPlugin(GajimPlugin): ...@@ -36,6 +36,8 @@ class AcronymsExpanderPlugin(GajimPlugin):
@log_calls('AcronymsExpanderPlugin') @log_calls('AcronymsExpanderPlugin')
def init(self): def init(self):
self.description = _('Replaces acronyms (or other strings) '
'with given expansions/substitutes.')
self.config_dialog = None self.config_dialog = None
self.gui_extension_points = { self.gui_extension_points = {
......
...@@ -45,6 +45,10 @@ class BannerTweaksPlugin(GajimPlugin): ...@@ -45,6 +45,10 @@ class BannerTweaksPlugin(GajimPlugin):
@log_calls('BannerTweaksPlugin') @log_calls('BannerTweaksPlugin')
def init(self): def init(self):
self.description = _('Allows user to tweak chat window banner '
'appearance (eg. make it compact).\n'
'Based on patch by pb in ticket #4133:\n'
'http://trac.gajim.org/attachment/ticket/4133.')
self.config_dialog = BannerTweaksPluginConfigDialog(self) self.config_dialog = BannerTweaksPluginConfigDialog(self)
self.gui_extension_points = { self.gui_extension_points = {
......
...@@ -688,6 +688,9 @@ class DBusPlugin(GajimPlugin): ...@@ -688,6 +688,9 @@ class DBusPlugin(GajimPlugin):
@log_calls('DBusPlugin') @log_calls('DBusPlugin')
def init(self): def init(self):
self.description = _('D-Bus support.'
' Based on remote_control module from'
'\nGajim core but uses new events handling system.')
self.config_dialog = None self.config_dialog = None
#self.gui_extension_points = {} #self.gui_extension_points = {}
#self.config_default_values = {} #self.config_default_values = {}
......
...@@ -36,6 +36,7 @@ class EventsDumpPlugin(GajimPlugin): ...@@ -36,6 +36,7 @@ class EventsDumpPlugin(GajimPlugin):
@log_calls('EventsDumpPlugin') @log_calls('EventsDumpPlugin')
def init(self): def init(self):
self.description = _('Dumps info about selected events to console.')
self.config_dialog = None self.config_dialog = None
#self.gui_extension_points = {} #self.gui_extension_points = {}
#self.config_default_values = {} #self.config_default_values = {}
......
...@@ -44,6 +44,8 @@ class GoogleTranslationPlugin(GajimPlugin): ...@@ -44,6 +44,8 @@ class GoogleTranslationPlugin(GajimPlugin):
@log_calls('GoogleTranslationPlugin') @log_calls('GoogleTranslationPlugin')
def init(self): def init(self):
self.description = _('Translates (currently only incoming)'
'messages using Google Translate.')
self.config_dialog = None self.config_dialog = None
#self.gui_extension_points = {} #self.gui_extension_points = {}
self.config_default_values = { self.config_default_values = {
......
...@@ -36,6 +36,8 @@ class LengthNotifierPlugin(GajimPlugin): ...@@ -36,6 +36,8 @@ class LengthNotifierPlugin(GajimPlugin):
@log_calls('LengthNotifierPlugin') @log_calls('LengthNotifierPlugin')
def init(self): def init(self):
self.description = _('Highlights message entry field in chat window '
'when given length of message is exceeded.')
self.config_dialog = LengthNotifierPluginConfigDialog(self) self.config_dialog = LengthNotifierPluginConfigDialog(self)
self.gui_extension_points = { self.gui_extension_points = {
...@@ -43,10 +45,11 @@ class LengthNotifierPlugin(GajimPlugin): ...@@ -43,10 +45,11 @@ class LengthNotifierPlugin(GajimPlugin):
self.disconnect_from_chat_control) self.disconnect_from_chat_control)
} }
self.config_default_values = {'MESSAGE_WARNING_LENGTH' : (140, 'Message length at which notification is invoked.'), self.config_default_values = {
'WARNING_COLOR' : ('#F0DB3E', 'Background color of text entry field in chat window when notification is invoked.'), 'MESSAGE_WARNING_LENGTH' : (140, 'Message length at which 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]') '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') @log_calls('LengthNotifierPlugin')
def textview_length_warning(self, tb, chat_control): def textview_length_warning(self, tb, chat_control):
......
...@@ -41,6 +41,8 @@ class NewEventsExamplePlugin(GajimPlugin): ...@@ -41,6 +41,8 @@ class NewEventsExamplePlugin(GajimPlugin):
@log_calls('NewEventsExamplePlugin') @log_calls('NewEventsExamplePlugin')
def init(self): def init(self):
self.description = _('Shows how to generate new network events based '
'on existing one using Network Events Controller.')
self.config_dialog = None self.config_dialog = None
#self.gui_extension_points = {} #self.gui_extension_points = {}
#self.config_default_values = {} #self.config_default_values = {}
......
...@@ -41,6 +41,7 @@ class PluginInstaller(GajimPlugin): ...@@ -41,6 +41,7 @@ class PluginInstaller(GajimPlugin):
@log_calls('PluginInstallerPlugin') @log_calls('PluginInstallerPlugin')
def init(self): def init(self):
self.description = _('Install and upgrade plugins from ftp')
self.config_dialog = PluginInstallerPluginConfigDialog(self) self.config_dialog = PluginInstallerPluginConfigDialog(self)
self.config_default_values = {'ftp_server': ('ftp.gajim.org', '')} self.config_default_values = {'ftp_server': ('ftp.gajim.org', '')}
......
...@@ -36,6 +36,7 @@ class RosterButtonsPlugin(GajimPlugin): ...@@ -36,6 +36,7 @@ class RosterButtonsPlugin(GajimPlugin):
@log_calls('RosterButtonsPlugin') @log_calls('RosterButtonsPlugin')
def init(self): def init(self):
self.description = _('Adds quick action buttons to roster window.')
self.GTK_BUILDER_FILE_PATH = self.local_file_path('roster_buttons.ui') self.GTK_BUILDER_FILE_PATH = self.local_file_path('roster_buttons.ui')
self.roster_vbox = gajim.interface.roster.xml.get_object('roster_vbox2') self.roster_vbox = gajim.interface.roster.xml.get_object('roster_vbox2')
self.show_offline_contacts_menuitem = gajim.interface.roster.xml.get_object('show_offline_contacts_menuitem') self.show_offline_contacts_menuitem = gajim.interface.roster.xml.get_object('show_offline_contacts_menuitem')
......
...@@ -41,6 +41,10 @@ class SnarlNotificationsPlugin(GajimPlugin): ...@@ -41,6 +41,10 @@ class SnarlNotificationsPlugin(GajimPlugin):
@log_calls('SnarlNotificationsPlugin') @log_calls('SnarlNotificationsPlugin')
def init(self): def init(self):
self.description = _('Shows events notification using Snarl '
'(http://www.fullphat.net/) under Windows. '
'Snarl needs to be installed in system.\n'
'PySnarl bindings are used (http://code.google.com/p/pysnarl/).')
self.config_dialog = None self.config_dialog = None
#self.gui_extension_points = {} #self.gui_extension_points = {}
#self.config_default_values = {} #self.config_default_values = {}
......
...@@ -34,6 +34,7 @@ class Triggers(GajimPlugin): ...@@ -34,6 +34,7 @@ class Triggers(GajimPlugin):
@log_calls('TriggersPlugin') @log_calls('TriggersPlugin')
def init(self): def init(self):
self.description = _('Configure Gajim\'s behaviour for each contact')
self.config_dialog = TriggersPluginConfigDialog(self) self.config_dialog = TriggersPluginConfigDialog(self)
self.config_default_values = {} self.config_default_values = {}
......
...@@ -52,6 +52,8 @@ NS_SXE = 'urn:xmpp:sxe:0' ...@@ -52,6 +52,8 @@ NS_SXE = 'urn:xmpp:sxe:0'
class WhiteboardPlugin(GajimPlugin): class WhiteboardPlugin(GajimPlugin):
@log_calls('WhiteboardPlugin') @log_calls('WhiteboardPlugin')
def init(self): def init(self):
self.description = _('Shows a whiteboard in chat.'
' python-pygoocanvas is required.')
self.config_dialog = None self.config_dialog = None
self.events_handlers = { self.events_handlers = {
'jingle-request-received': (ged.GUI1, self._nec_jingle_received), 'jingle-request-received': (ged.GUI1, self._nec_jingle_received),
......
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