translate plugins descriptions

This commit is contained in:
Denis Fomin 2013-08-16 23:29:48 +04:00
parent 5809aa2b5a
commit 40c9dab636
1 changed files with 3 additions and 0 deletions

View File

@ -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)