mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Fix a pygettext warning
This commit is contained in:
parent
597cec5af7
commit
f1d5d9d832
@ -154,5 +154,6 @@ class PluginInternationalization:
|
|||||||
def internationalizeDocstring(obj):
|
def internationalizeDocstring(obj):
|
||||||
# FIXME: check if the plugin has an _ object
|
# FIXME: check if the plugin has an _ object
|
||||||
internationalizedCommands.update({hash(obj): obj})
|
internationalizedCommands.update({hash(obj): obj})
|
||||||
obj.__doc__=sys.modules[obj.__module__]._(obj.__doc__)
|
obj.__doc__=sys.modules[obj.__module__]._.__call__(obj.__doc__)
|
||||||
|
# We use _.__call__() instead of _() because of a pygettext warning.
|
||||||
return obj
|
return obj
|
||||||
|
Loading…
Reference in New Issue
Block a user