summaryrefslogtreecommitdiff
path: root/talermerchantdemos/donations
diff options
context:
space:
mode:
Diffstat (limited to 'talermerchantdemos/donations')
-rw-r--r--talermerchantdemos/donations/templates/base.html.j210
-rw-r--r--talermerchantdemos/donations/templates/checkout.html.j210
-rw-r--r--talermerchantdemos/donations/templates/fulfillment.html.j24
-rw-r--r--talermerchantdemos/donations/templates/index.html.j210
-rw-r--r--talermerchantdemos/donations/templates/provider-not-supported.html.j29
5 files changed, 26 insertions, 17 deletions
diff --git a/talermerchantdemos/donations/templates/base.html.j2 b/talermerchantdemos/donations/templates/base.html.j2
index b67658b..f3b1359 100644
--- a/talermerchantdemos/donations/templates/base.html.j2
+++ b/talermerchantdemos/donations/templates/base.html.j2
@@ -17,7 +17,7 @@
<html data-taler-nojs="true">
<head>
- <title>{{ gettext("Taler Donation Demo") }}</title>
+ <title>{{ gettext("GNU Taler Demo: Donations") }}</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='pure.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='demo.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='navbar.css') }}" />
@@ -66,11 +66,11 @@
<body>
<header class="demobar" style="display: flex; flex-direction: column;">
- <h1><span class="tt adorn-brackets">{{ gettext("Taler Demo") }}</span></h1>
- <h1><span class="it"><a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS') }}">{{gettext("Donations")}}</a></span></h1>
+ <h1><span class="tt adorn-brackets">{{ gettext("Taler Demo") }}</span><br/>
+ <span class="it"><a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS') }}">{{gettext("Donations")}}</a></span></h1>
<p>{{
gettext ("This is the donation page.") + "<br>" +
- gettext ("Using this page you can make donations (in an imaginary currency) to Free Software projects.")
+ gettext ("Using this page you can make donations in {currency} to Free Software projects.").format(currency=merchant_currency)
}}
</p>
</header>
@@ -106,7 +106,7 @@
{% endblock %}
<hr />
<div>
- <p>{{ gettext('You can learn more about Taler on our main <a href="{site}">website</a>.').format(site="https://taler.net/") }}</p>
+ <p>{{ gettext('You can learn more about GNU Taler on our main <a href="{site}">website</a>.').format(site="https://taler.net/") }}</p>
<div style="flex-grow:1"></div>
<p>Copyright &copy; 2014&mdash;2020 Taler Systems SA</p>
</div>
diff --git a/talermerchantdemos/donations/templates/checkout.html.j2 b/talermerchantdemos/donations/templates/checkout.html.j2
index 5251fdf..5b6900f 100644
--- a/talermerchantdemos/donations/templates/checkout.html.j2
+++ b/talermerchantdemos/donations/templates/checkout.html.j2
@@ -6,12 +6,16 @@
<p>
{{
- gettext('This is an example for a "checkout" page of a Web shop. On the previous page, you have created the shopping cart and decided which product to buy (i.e. which project to donate KUDOS to). Now in this page, you are asked to select a payment option. As Taler is not yet universally used, we expect merchants will offer various payment options.')
+ gettext('This is an example for a "checkout" page of a Web shop.') + "<br\>" +
+ gettext('On the previous page, you have created the shopping cart and decided which product to buy (i.e. which project to donate KUDOS to).') + "<br/>" +
+ gettext('As Taler is not yet universally used, we expect merchants will offer various payment options.') + "<br/>" +
+ gettext('To continue with the demo, select the &quot;Taler&quot; payment option.')
}}
</p>
- <p>
+ <p class="graybox">
{{
- gettext('Note that you MUST select Taler here for the demo to continue, as the other payment options are just placeholders and not really working in the demonstration. Also, it is of course possible to ask the user to make this choice already on the previous page (with the shopping cart), we just separated the two steps to keep each step as simple as possible.')
+ gettext('Note that you must select Taler here for the demo to continue, as the other payment options are just placeholders and not really working in the demonstration.') + "<br\>" +
+ gettext('It would be possible to ask the user to make this choice already on the previous page (with the shopping cart); we just separated the two steps to keep each step as simple as possible.')
}}
</p>
diff --git a/talermerchantdemos/donations/templates/fulfillment.html.j2 b/talermerchantdemos/donations/templates/fulfillment.html.j2
index df9f30b..5fd799b 100644
--- a/talermerchantdemos/donations/templates/fulfillment.html.j2
+++ b/talermerchantdemos/donations/templates/fulfillment.html.j2
@@ -1,7 +1,7 @@
{% extends "templates/base.html.j2" %}
{% block main %}
-<h1>{{ gettext("Donation Receipt") }}</h1>
+<h2>{{ gettext("Donation Receipt") }}</h2>
<p>
{{
gettext("Thank you, <strong>{donor}</strong>, for donating <strong>{amount}</strong> to <strong>{receiver}</strong>.").format(donor=donation_donor,amount=donation_amount,receiver=donation_receiver)
@@ -14,7 +14,7 @@
}}
</p>
-<p>
+<p class="graybox">
{{
gettext('You can always make <a href="{link}">another donation</a>.').format(link=url_for('index'))
}}
diff --git a/talermerchantdemos/donations/templates/index.html.j2 b/talermerchantdemos/donations/templates/index.html.j2
index 91122f3..87bce85 100644
--- a/talermerchantdemos/donations/templates/index.html.j2
+++ b/talermerchantdemos/donations/templates/index.html.j2
@@ -1,11 +1,11 @@
{% extends "templates/base.html.j2" %}
{% block main %}
-<h1>{{ gettext("Taler donation demonstrator") }}</h1>
+<h2>{{ gettext("Donate to Free Software projects") }}</h2>
<p>
{{
- gettext("This donations website shows the user experience for donations with Taler.") + "<br>" +
+ gettext("This donations website shows the user experience for donations with GNU Taler.") + "<br>" +
gettext("You can make donations in an toy currency ({currency})").format(currency=merchant_currency)
}}
</p>
@@ -13,7 +13,7 @@
<div>
<p>
{{
- gettext("Please select a project, the amount (*) of {currency} you wish to donate, and enter the name that will appear on your receipt:").format(currency=merchant_currency)
+ gettext("Please select a project, the amount (*) of {currency} you wish to donate, and enter the donor's name that will appear on your receipt:").format(currency=merchant_currency)
}}
</p>
@@ -34,9 +34,9 @@
<input type="submit" class="pure-button pure-button-primary" value="{{gettext("Donate!")}}" />
</div>
</form>
- <p>
+ <p class="graybox">
{{
- gettext("(*) To make it a bit more fun, the 5 {currency} option is deliberately implemented with a fault: the merchant will try to make you donate 6 {currency} instead of the 5 {currency} shown in the form. But do not worry, you will be given the opportunity to review the final offer from the merchant in a window secured by the Taler extension. That way, you can spot the error before committing to an incorrect contract or amount.").format(currency=merchant_currency)
+ gettext("(*) To make the demo a bit more interesting, the 5 {currency} option is deliberately implemented with a fault: the merchant will try to make you donate 6 {currency} instead of the 5 {currency} shown in the form. But do not worry, you will be given the opportunity to review the final offer from the merchant in the Taler wallet. That way, Taler protects you from committing to erroneous payments.").format(currency=merchant_currency)
}}
</p>
</div>
diff --git a/talermerchantdemos/donations/templates/provider-not-supported.html.j2 b/talermerchantdemos/donations/templates/provider-not-supported.html.j2
index 88f2000..a4d5d80 100644
--- a/talermerchantdemos/donations/templates/provider-not-supported.html.j2
+++ b/talermerchantdemos/donations/templates/provider-not-supported.html.j2
@@ -1,6 +1,11 @@
{% extends "templates/base.html" %}
{% block main %}
-<h1>Payment Provider Not Supported</h1>
-<p>Unfortunately the selected payment provider is not supported in this demo. Please go back and select "Taler".</p>
+<h2>{{ gettext("Payment Provider Not Supported") }}</h2>
+<p>
+{{
+ gettext("Unfortunately the selected payment provider is not supported in this demo.") + "<br>" +
+ gettext("Please go back and select &quot;Taler&quot;.")
+}}
+</p>
{% endblock main %}