mirror of https://github.com/Mikaela/Limnoria.git
Merge branch 'i18n' into l10n-fr
This commit is contained in:
commit
4037676b80
|
@ -209,7 +209,7 @@ class PluginInternationalization:
|
|||
return (be, has)
|
||||
|
||||
def internationalizeDocstring(obj):
|
||||
# FIXME: check if the plugin has an _ object
|
||||
if sys.modules[obj.__module__].__dict__.has_key('_'):
|
||||
internationalizedCommands.update({hash(obj): obj})
|
||||
obj.__doc__=sys.modules[obj.__module__]._.__call__(obj.__doc__)
|
||||
# We use _.__call__() instead of _() because of a pygettext warning.
|
||||
|
|
Loading…
Reference in New Issue