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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jun 9 15:14:53 CEST 2010


Author: torsten
Date: 2010-06-09 15:14:52 +0200 (Wed, 09 Jun 2010)
New Revision: 2947

Modified:
   base/trunk/mpulsweb/lib/base.py
Log:
Set language and provide location of language files.


Modified: base/trunk/mpulsweb/lib/base.py
===================================================================
--- base/trunk/mpulsweb/lib/base.py	2010-06-09 13:13:13 UTC (rev 2946)
+++ base/trunk/mpulsweb/lib/base.py	2010-06-09 13:14:52 UTC (rev 2947)
@@ -152,7 +152,7 @@
         for lang in request.languages:
             try:
                 log.debug('Trying to set lang to %s' % lang)
-                set_lang(lang)
+                set_lang(lang, i18n_dir=config.get('mpuls.app.path.i18n'))
                 break
             except Exception, e:
                 log.debug('Can not set lang to %s' % lang)
@@ -160,7 +160,7 @@
             log.debug('Trying to set lang to default: %s' % deflang)
             try:
                 lang = deflang
-                set_lang(lang)
+                set_lang(lang, i18n_dir=config.get('mpuls.app.path.i18n'))
             except:
                 log.exception(e)
                 raise



More information about the Mpuls-commits mailing list