taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | Submodules | README | LICENSE

commit 4b01264b52f6037e6553bf08b07f9f90f33af4f0
parent 6142f74ab16efe7dabab9b4b731ccb4983260b80
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Sun,  6 Jul 2025 21:06:46 +0200

revert changes

Diffstat:
Mtalermerchantdemos/landing/landing.py | 25+------------------------
1 file changed, 1 insertion(+), 24 deletions(-)

diff --git a/talermerchantdemos/landing/landing.py b/talermerchantdemos/landing/landing.py @@ -136,30 +136,7 @@ def start(lang): # get_locale defaults to english, hence the # condition below happens only when lang is # wrong or unsupported, respond 404. - # This one, seems like to check for - # -H "Accept-Language: fr" - # so for the case of en browser and fr/ it can fail... - #if lang != get_locale(): - # raise werkzeug.exceptions.NotFound() - # I think we can check for the translations array - translations = [ - "ar", # Arabic - "de", # German - "en", # English - "es", # Spanish - "fr", # French - "hi", # Hindi - "it", # Italian - "ja", # Japanese - "ko", # Korean - "pt", # Portuguese - "ru", # Russian - "sv", # Swedish - "tr", # Turkish - "uk", # Ukrainian - "zh_Hant" # Chinese (Traditional) - ] - if lang not in translations: + if lang != get_locale(): raise werkzeug.exceptions.NotFound() if x := os.environ.get("TALER_ENV_URL_BANK"):