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)
|
plugins_found.append(module_attr)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
# set plugin localization
|
pass
|
||||||
try:
|
|
||||||
module_attr._ = plugins_i18n._
|
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
except configparser.NoOptionError:
|
except configparser.NoOptionError:
|
||||||
# all fields are required
|
# all fields are required
|
||||||
log.debug(
|
log.debug(
|
||||||
|
|
Loading…
Reference in New Issue