summaryrefslogtreecommitdiff
path: root/talermerchantdemos/survey/templates
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-11 15:40:39 +0200
committerChristian Grothoff <christian@grothoff.org>2020-10-11 15:40:39 +0200
commit449f1d5765ffffcf2c708f4ccf6278e9c79081d0 (patch)
tree284ae10511cb677edb390f5fa20533c0f52e3eb9 /talermerchantdemos/survey/templates
parenta984947846c7b83d3151fc4987ca615edcb168ef (diff)
downloadtaler-merchant-demos-449f1d5765ffffcf2c708f4ccf6278e9c79081d0.tar.gz
taler-merchant-demos-449f1d5765ffffcf2c708f4ccf6278e9c79081d0.tar.bz2
taler-merchant-demos-449f1d5765ffffcf2c708f4ccf6278e9c79081d0.zip
improve i18n for survey
Diffstat (limited to 'talermerchantdemos/survey/templates')
-rw-r--r--talermerchantdemos/survey/templates/base.html.j24
-rw-r--r--talermerchantdemos/survey/templates/error.html.j22
-rw-r--r--talermerchantdemos/survey/templates/index.html.j22
3 files changed, 4 insertions, 4 deletions
diff --git a/talermerchantdemos/survey/templates/base.html.j2 b/talermerchantdemos/survey/templates/base.html.j2
index b6d1c62..1beb0d5 100644
--- a/talermerchantdemos/survey/templates/base.html.j2
+++ b/talermerchantdemos/survey/templates/base.html.j2
@@ -90,10 +90,10 @@
<br>
<!--<hr style="width: 100%;">-->
{% if lang != 'en' %}
- <a href="{{ self_localized('en') }}" class="navbtn">English [en]</a><br>
+ <a href="/en/" class="navbtn">English [en]</a><br>
{% endif %}
{% if lang != 'de' %}
- <a href="{{ self_localized('de') }}" class="navbtn">Deutsch [de]</a><br>
+ <a href="/de/" class="navbtn">Deutsch [de]</a><br>
{% endif %}
</div>
</span>
diff --git a/talermerchantdemos/survey/templates/error.html.j2 b/talermerchantdemos/survey/templates/error.html.j2
index ffc2e1f..844da08 100644
--- a/talermerchantdemos/survey/templates/error.html.j2
+++ b/talermerchantdemos/survey/templates/error.html.j2
@@ -6,7 +6,7 @@
{% if status_code %}
<p>
- {{ gettext ("The backend returned status code {code}.").format(code=status_code) }}.
+ {{ gettext ("The backend returned status code {code}.").format(code=status_code) }}
</p>
{% endif %}
diff --git a/talermerchantdemos/survey/templates/index.html.j2 b/talermerchantdemos/survey/templates/index.html.j2
index 9c9df5b..3539bf8 100644
--- a/talermerchantdemos/survey/templates/index.html.j2
+++ b/talermerchantdemos/survey/templates/index.html.j2
@@ -8,7 +8,7 @@
</p>
</div>
<div>
- <form action="{{ url_for('submit_survey') }}" method="post" class="pure-form pure-form-stacked">
+ <form action="{{ "/" + lang + "/submit-survey" }}" method="post" class="pure-form pure-form-stacked">
<legend>{{ gettext("Which payment system do you prefer?") }}</legend>
<fieldset>
<label for="option-taler">