From 40c9dab6368b7894e288e51bdc539312c7c5e738 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Fri, 16 Aug 2013 23:29:48 +0400 Subject: [PATCH] translate plugins descriptions --- src/plugins/pluginmanager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index 395a82a41..bcad829ff 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -492,6 +492,9 @@ class PluginManager(metaclass=Singleton): for option in fields: if conf.get('info', option) is '': raise configparser.NoOptionError('field empty') + if option == 'description': + setattr(module_attr, option, _(conf.get('info', option))) + continue setattr(module_attr, option, conf.get('info', option)) plugins_found.append(module_attr)