Merge branch 'l10n-fr' into testing

This commit is contained in:
Valentin Lorentz 2010-11-01 19:53:58 +01:00
commit 27ef96a78a
2 changed files with 8 additions and 4 deletions

View File

@ -23,7 +23,7 @@ msgstr "Détermine si ce plugin est activé."
msgid "" msgid ""
"Determines whether this plugin will automode\n" "Determines whether this plugin will automode\n"
" owners." " owners."
msgstr "Détermine si ce pluginmettra des modes automatiques sur les owners." msgstr "Détermine si ce plugin mettra des modes automatiques sur les owners."
#: config.py:52 #: config.py:52
msgid "" msgid ""

View File

@ -306,6 +306,10 @@ def internationalizeDocstring(obj):
Only useful for commands (commands' docstring is displayed on IRC)""" Only useful for commands (commands' docstring is displayed on IRC)"""
if sys.modules[obj.__module__].__dict__.has_key('_'): if sys.modules[obj.__module__].__dict__.has_key('_'):
internationalizedCommands.update({hash(obj): obj}) internationalizedCommands.update({hash(obj): obj})
obj.__doc__=sys.modules[obj.__module__]._.__call__(obj.__doc__) try:
# We use _.__call__() instead of _() because of a pygettext warning. obj.__doc__=sys.modules[obj.__module__]._.__call__(obj.__doc__)
return obj # We use _.__call__() instead of _() because of a pygettext warning.
except AttributeError:
# attribute '__doc__' of 'type' objects is not writable
pass
return obj