[Mpuls-commits] r2934 - base/trunk/mpulsweb/config
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jun 9 12:05:51 CEST 2010
Author: torsten
Date: 2010-06-09 12:05:49 +0200 (Wed, 09 Jun 2010)
New Revision: 2934
Modified:
base/trunk/mpulsweb/config/environment.py
Log:
Add i18n-path to pylons.paths.
Modified: base/trunk/mpulsweb/config/environment.py
===================================================================
--- base/trunk/mpulsweb/config/environment.py 2010-06-09 10:04:30 UTC (rev 2933)
+++ base/trunk/mpulsweb/config/environment.py 2010-06-09 10:05:49 UTC (rev 2934)
@@ -75,10 +75,17 @@
controller_url = get('mpuls.app.path.controllers')
log.info('Custom "controller" directory: %s' % controller_url)
+ # Internationalisation
+ i18n_url = os.path.join(root, 'i18n')
+ if get('mpuls.app.path.i18n'):
+ i18n_url = get('mpuls.app.path.i18n')
+ log.info('Custom "i18n" directory: %s' % controller_url)
+
paths = dict(root=root,
controllers=controller_url,
static_files=static_urls,
- templates=template_urls)
+ templates=template_urls,
+ i18n=i18n_url)
# Initialize config with the basic options
config.init_app(global_conf, app_conf, package='mpulsweb',
More information about the Mpuls-commits
mailing list