diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-11 15:40:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-11 15:40:39 +0200 |
commit | 449f1d5765ffffcf2c708f4ccf6278e9c79081d0 (patch) | |
tree | 284ae10511cb677edb390f5fa20533c0f52e3eb9 /talermerchantdemos/blog/blog.py | |
parent | a984947846c7b83d3151fc4987ca615edcb168ef (diff) | |
download | taler-merchant-demos-449f1d5765ffffcf2c708f4ccf6278e9c79081d0.tar.gz taler-merchant-demos-449f1d5765ffffcf2c708f4ccf6278e9c79081d0.tar.bz2 taler-merchant-demos-449f1d5765ffffcf2c708f4ccf6278e9c79081d0.zip |
improve i18n for survey
Diffstat (limited to 'talermerchantdemos/blog/blog.py')
-rw-r--r-- | talermerchantdemos/blog/blog.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py index ba6571b..be9b0a2 100644 --- a/talermerchantdemos/blog/blog.py +++ b/talermerchantdemos/blog/blog.py @@ -79,13 +79,11 @@ BACKEND_URL = urljoin(BACKEND_BASE_URL, "instances/blog/") app.config.from_object(__name__) babel = Babel(app) -print("Using translations from:") -print(list(babel.translation_directories)) +LOGGER.info("Using translations from:" + ':'.join(list(babel.translation_directories))) translations = [str(translation) for translation in babel.list_translations()] if not 'en' in translations: translations.append('en') -print("Operating with the following translations available:") -print(translations) +LOGGER.info("Operating with the following translations available: " + ' '.join(translations)) app.jinja_env.globals.update(self_localized=self_localized) |