[Mpuls-commits] r4086 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 2 16:09:53 CET 2010


Author: torsten
Date: 2010-11-02 16:09:53 +0100 (Tue, 02 Nov 2010)
New Revision: 4086

Modified:
   base/trunk/mpulsweb/lib/base.py
Log:
* mpulsweb/lib/base.py (BaseController.__before__): Adapted call of
set_lang().


Modified: base/trunk/mpulsweb/lib/base.py
===================================================================
--- base/trunk/mpulsweb/lib/base.py	2010-11-02 15:09:10 UTC (rev 4085)
+++ base/trunk/mpulsweb/lib/base.py	2010-11-02 15:09:53 UTC (rev 4086)
@@ -166,7 +166,7 @@
         for lang in request.languages:
             try:
                 log.debug('Trying to set lang to %s' % lang)
-                set_lang(lang, i18n_dir=config.get('mpuls.app.path.i18n'))
+                set_lang(lang)
                 break
             except Exception, e:
                 log.debug('Can not set lang to %s' % lang)
@@ -174,7 +174,7 @@
             log.debug('Trying to set lang to default: %s' % deflang)
             try:
                 lang = deflang
-                set_lang(lang, i18n_dir=config.get('mpuls.app.path.i18n'))
+                set_lang(lang)
             except:
                 log.exception(e)
                 raise



More information about the Mpuls-commits mailing list