From adf0f4fd36290becd33292d56d819aeaf260d5f6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 3 Aug 2020 11:02:26 +0200 Subject: support i18n with HTML templates --- contrib/Makefile.am | 6 +- contrib/offer_refund.en.must | 28 ++++++++ contrib/offer_refund.must | 28 -------- contrib/request_payment.en.must | 156 ++++++++++++++++++++++++++++++++++++++++ contrib/request_payment.must | 156 ---------------------------------------- 5 files changed, 187 insertions(+), 187 deletions(-) create mode 100644 contrib/offer_refund.en.must delete mode 100644 contrib/offer_refund.must create mode 100644 contrib/request_payment.en.must delete mode 100644 contrib/request_payment.must (limited to 'contrib') diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 17c8ea4a..8edb184b 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -1,5 +1,5 @@ -pkgdatadir = $(prefix)/share/taler/merchant/ +pkgdatadir = $(prefix)/share/taler/merchant/templates/ dist_pkgdata_DATA = \ - request_payment.must \ - offer_refund.must + request_payment.en.must \ + offer_refund.en.must diff --git a/contrib/offer_refund.en.must b/contrib/offer_refund.en.must new file mode 100644 index 00000000..913b6a5f --- /dev/null +++ b/contrib/offer_refund.en.must @@ -0,0 +1,28 @@ +{% extends "templates/base.html" %} + +{% block main %} + +

Refund

+ +
+

+ Looks like your browser doesn't support GNU Taler payments. You can try + installing a wallet browser extension. +

+
+ +
+ +

+ You can use this QR code to get a refund with your mobile wallet: +

+ + {{ qrcode_svg | safe }} + +

+ Click this link to open your system's Taler wallet if it exists. +

+ +
+ +{% endblock main %} diff --git a/contrib/offer_refund.must b/contrib/offer_refund.must deleted file mode 100644 index 913b6a5f..00000000 --- a/contrib/offer_refund.must +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "templates/base.html" %} - -{% block main %} - -

Refund

- -
-

- Looks like your browser doesn't support GNU Taler payments. You can try - installing a wallet browser extension. -

-
- -
- -

- You can use this QR code to get a refund with your mobile wallet: -

- - {{ qrcode_svg | safe }} - -

- Click this link to open your system's Taler wallet if it exists. -

- -
- -{% endblock main %} diff --git a/contrib/request_payment.en.must b/contrib/request_payment.en.must new file mode 100644 index 00000000..7d6effcc --- /dev/null +++ b/contrib/request_payment.en.must @@ -0,0 +1,156 @@ + + + + + + + + + Payment required for {{order_summary}} + + + + + + + + +
+ + +

Taler payment required

+ +
+

+ Please select your Taler wallet to pay. If you do not have one, GNU Taler + offers wallet browser extensions for + many platforms. +

+
+ +
+

+ Alternatively, you can scan this QR code to pay with your mobile wallet: +

+
+ {{{taler_pay_qrcode_svg}}} +
+

+ Finally, you could click this link to + try to open your system's Taler wallet if it exists. +

+
+
+
+ +
+

You can learn more about GNU Taler on our website.
+ Copyright © 2014—2020 Taler Systems SA

+
+ + diff --git a/contrib/request_payment.must b/contrib/request_payment.must deleted file mode 100644 index 7d6effcc..00000000 --- a/contrib/request_payment.must +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - - - Payment required for {{order_summary}} - - - - - - - - -
- - -

Taler payment required

- -
-

- Please select your Taler wallet to pay. If you do not have one, GNU Taler - offers wallet browser extensions for - many platforms. -

-
- -
-

- Alternatively, you can scan this QR code to pay with your mobile wallet: -

-
- {{{taler_pay_qrcode_svg}}} -
-

- Finally, you could click this link to - try to open your system's Taler wallet if it exists. -

-
-
-
- -
-

You can learn more about GNU Taler on our website.
- Copyright © 2014—2020 Taler Systems SA

-
- - -- cgit v1.2.3