[Mpuls-commits] r2950 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jun 9 15:44:39 CEST 2010
Author: torsten
Date: 2010-06-09 15:44:39 +0200 (Wed, 09 Jun 2010)
New Revision: 2950
Modified:
base/trunk/mpulsweb/lib/translation.py
Log:
Added comments on improvement
Modified: base/trunk/mpulsweb/lib/translation.py
===================================================================
--- base/trunk/mpulsweb/lib/translation.py 2010-06-09 13:26:57 UTC (rev 2949)
+++ base/trunk/mpulsweb/lib/translation.py 2010-06-09 13:44:39 UTC (rev 2950)
@@ -19,6 +19,8 @@
_('This should be in lots of languages')
"""
+ # TODO: Do not build a new newbranslator every time. Save it in app_globals
+ # e.g
base_translated = _get_translator(get_lang())
translated = pylons.translator.ugettext(value)
if translated == value:
More information about the Mpuls-commits
mailing list