From 79930a74357a814ada8ebfb59f288789e1fdc97b Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 1 Nov 2010 19:48:45 +0100 Subject: [PATCH 1/2] Bug fix in src/i18n.py --- src/i18n.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/i18n.py b/src/i18n.py index 4877ec32a..7edfeca90 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -311,6 +311,10 @@ def internationalizeDocstring(obj): Only useful for commands (commands' docstring is displayed on IRC)""" 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. + try: + obj.__doc__=sys.modules[obj.__module__]._.__call__(obj.__doc__) + # We use _.__call__() instead of _() because of a pygettext warning. + except AttributeError: + # attribute '__doc__' of 'type' objects is not writable + pass return obj From 382bad4a1da127f98795523f8faa6764cea7fbea Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 1 Nov 2010 19:52:28 +0100 Subject: [PATCH 2/2] AutoMode: fix misspell in french locale --- plugins/AutoMode/locale/fr.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/AutoMode/locale/fr.po b/plugins/AutoMode/locale/fr.po index a866bb41a..53c063034 100644 --- a/plugins/AutoMode/locale/fr.po +++ b/plugins/AutoMode/locale/fr.po @@ -23,7 +23,7 @@ msgstr "Détermine si ce plugin est activé." msgid "" "Determines whether this plugin will automode\n" " 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 msgid ""