summaryrefslogtreecommitdiff
path: root/talermerchantdemos/landing
diff options
context:
space:
mode:
Diffstat (limited to 'talermerchantdemos/landing')
-rw-r--r--talermerchantdemos/landing/landing.py3
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()]