diff MoinMoin/macro/__init__.py @ 3177:a7bf8ff3f517

fix language macros
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 03 Mar 2008 02:27:00 +0100
parents 5cb80bd604b4
children a739558ca3dc
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py	Mon Mar 03 02:10:49 2008 +0100
+++ b/MoinMoin/macro/__init__.py	Mon Mar 03 02:27:00 2008 +0100
@@ -123,7 +123,7 @@
                 execute = lambda _self, _args: _self._wrap(call, _args)
             except AttributeError:
                 if macro_name in i18n.wikiLanguages():
-                    execute = builtins._m_lang
+                    execute = self.__class__._m_lang
                 else:
                     raise ImportError("Cannot load macro %s" % macro_name)
         return execute(self, args)