translate plugins descriptions

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

View File

@ -472,6 +472,9 @@ class PluginManager(object):
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))
conf.remove_section('info')