[Mpuls-commits] r4369 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Dec 14 12:17:38 CET 2010
Author: torsten
Date: 2010-12-14 12:17:38 +0100 (Tue, 14 Dec 2010)
New Revision: 4369
Modified:
base/trunk/mpulsweb/lib/base.py
Log:
* mpulsweb/lib/base.py (render_mako.render_template): Issue1424: Fixed custom render function to use the custum ungettext-function.
Modified: base/trunk/mpulsweb/lib/base.py
===================================================================
--- base/trunk/mpulsweb/lib/base.py 2010-12-14 10:24:29 UTC (rev 4368)
+++ base/trunk/mpulsweb/lib/base.py 2010-12-14 11:17:38 UTC (rev 4369)
@@ -48,7 +48,7 @@
from mpulsweb.config.importer import import_overridable_module
import mpulsweb.lib.db as db
-from mpulsweb.lib.translation import set_lang, _
+from mpulsweb.lib.translation import set_lang, _, ungettext
from mpulsweb.lib.timelog import timeLog
from mpulsweb.lib.navigation import get_navigation
from mpulsweb.lib.app_globals import session
@@ -96,7 +96,7 @@
globs.update(pylons_globals())
# Thirs overwritw '_'
- globs.update({'_': _})
+ globs.update({'_': _, 'ungettext': ungettext})
globs["session"] = session
# Grab a template reference
More information about the Mpuls-commits
mailing list