Fix a pygettext warning

This commit is contained in:
Valentin Lorentz 2010-10-20 10:27:31 +02:00
parent 597cec5af7
commit f1d5d9d832
1 changed files with 2 additions and 1 deletions

View File

@ -154,5 +154,6 @@ class PluginInternationalization:
def internationalizeDocstring(obj):
# FIXME: check if the plugin has an _ object
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