From 45ef9e6e6525bc79889a968b702c9fba64bf0966 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Tue, 2 Apr 2024 09:01:36 +0300 Subject: [PATCH] Localize Stripe links https://support.stripe.com/questions/supported-languages-for-stripe-checkout-and-payment-links Signed-off-by: Roman Tsisyk --- config.toml | 1 - templates/shortcodes/donate_buttons.html | 23 ++++++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config.toml b/config.toml index 2f10257c..84143850 100644 --- a/config.toml +++ b/config.toml @@ -28,7 +28,6 @@ external_links_target_blank = true paths = "safe" [extra] -stripe = "https://donate.organicmaps.app/" ada = "addr1qxh59080ujswxuzapzrdvuzpglfktg09gq9q7dxpdl7jfka0g27wle9qudc96zyx6ecyz37nvks72sq2pu6vzmlayndsj02qhw" algo = "3UZXZEPGFAM7E74IO32Y7O6KOY3E7NNNJVBV4GFS5UWQQSY7AIM5PK7C2E" bch = "qqcjkzf7nlgvhng5vhq7n7hjrcdqccyqlq9h7gq4xw" diff --git a/templates/shortcodes/donate_buttons.html b/templates/shortcodes/donate_buttons.html index f546dbf8..8deadc4f 100644 --- a/templates/shortcodes/donate_buttons.html +++ b/templates/shortcodes/donate_buttons.html @@ -1,28 +1,33 @@ +{% if lang == 'en' %} +{% set stripe = 'https://donate.organicmaps.app' %} +{% else %} +{% set stripe = 'https://donate.organicmaps.app/?locale=' ~ lang %} +{% endif %}