Dont monkey patch _() into plugins
Plugins can import _() from plugins_i18n
This commit is contained in:
parent
e5fe30cb5b
commit
c43714e4c2
|
@ -694,11 +694,7 @@ class PluginManager(metaclass=Singleton):
|
|||
|
||||
plugins_found.append(module_attr)
|
||||
except TypeError:
|
||||
# set plugin localization
|
||||
try:
|
||||
module_attr._ = plugins_i18n._
|
||||
except AttributeError:
|
||||
pass
|
||||
pass
|
||||
except configparser.NoOptionError:
|
||||
# all fields are required
|
||||
log.debug(
|
||||
|
|
Loading…
Reference in New Issue