mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Merge branch 'l10n-fr' into testing
This commit is contained in:
commit
5679499c43
@ -304,6 +304,8 @@ def internationalizeDocstring(obj):
|
||||
"""Decorates functions and internationalize their docstring.
|
||||
|
||||
Only useful for commands (commands' docstring is displayed on IRC)"""
|
||||
if obj.__doc__ == None:
|
||||
return obj
|
||||
if sys.modules[obj.__module__].__dict__.has_key('_'):
|
||||
internationalizedCommands.update({hash(obj): obj})
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user