diff options
Diffstat (limited to 'talermerchantdemos/landing/landing.py')
-rw-r--r-- | talermerchantdemos/landing/landing.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/talermerchantdemos/landing/landing.py b/talermerchantdemos/landing/landing.py index 5b6376e..e158d3d 100644 --- a/talermerchantdemos/landing/landing.py +++ b/talermerchantdemos/landing/landing.py @@ -33,6 +33,7 @@ from ..httpcommon import ( backend_get, backend_post, self_localized, + get_locale, make_utility_processor, ) import sys @@ -63,7 +64,9 @@ except ConfigurationError as ce: BABEL_TRANSLATION_DIRECTORIES = "../translations" app.config.from_object(__name__) + babel = Babel(app) +babel.localeselector(get_locale) LOGGER.info("Using translations from:" + ":".join(list(babel.translation_directories))) translations = [str(translation) for translation in babel.list_translations()] |