taler-www

Main taler.net website
Log | Files | Refs | Submodules | README | LICENSE

commit ab0ba5737d689aa8a37f65702b3a79275ef2849f
parent 98b0950b8d859fcd970203e6332ffb7797193289
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  1 Dec 2020 20:25:37 +0100

enable new style formatting

Diffstat:
Mmake_site.py | 1+
Mtemplate/docs.html.j2 | 14+++++++-------
2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/make_site.py b/make_site.py @@ -27,6 +27,7 @@ env = jinja2.Environment(loader=jinja2.FileSystemLoader(str(PurePath(__file__).p trim_blocks=True, undefined=jinja2.StrictUndefined, autoescape=False) +env.newstyle_gettext = True if len(sys.argv) >= 2 and sys.argv[1] == "-vv": DEBUG=1 diff --git a/template/docs.html.j2 b/template/docs.html.j2 @@ -40,7 +40,7 @@ {% trans %} Tutorial and manual for operating a merchant. {% endtrans %} - {{ gettext('Also available as <a href="%(link)s">PDF</a>.')|format(link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-manual.pdf") }} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-manual.pdf") }} </div> <div class="col-3"> @@ -51,7 +51,7 @@ {% trans %} Tutorial for processing Taler payments using the merchant backend API. {% endtrans %} - {{ gettext('Also available as <a href="%(link)s">PDF</a>.')|format(link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-api-tutorial.pdf") }} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-api-tutorial.pdf") }} </div> <div class="col-3"> @@ -62,7 +62,7 @@ {% trans %} Operator&#39;s manual for the GNU Taler exchange. {% endtrans %} - {{ gettext('Also available as <a href="%(link)s">PDF</a>.')|format(link="https://" + siteconfitem['docshost'] + "/pdf/taler-exchange-manual.pdf") }} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-exchange-manual.pdf") }} </div> <div class="col-3"> @@ -73,7 +73,7 @@ {% trans %} Manual for tightly integrating Taler with banking applications. {% endtrans %} - {{ gettext('Also available as <a href="%(link)s">PDF</a>.')|format(link="https://" + siteconfitem['docshost'] + "/pdf/taler-bank-manual.pdf") }} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-bank-manual.pdf") }} </div> </div> @@ -102,7 +102,7 @@ {% trans %} Manual to run the back-office Web application. {% endtrans %} - {{ gettext('Also available as <a href="%(link)s">PDF</a>.')|format(link="https://" + siteconfitem['docshost'] + "/pdf/taler-backoffice-manual.pdf") }} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-backoffice-manual.pdf") }} </div> <div class="col-3"> @@ -113,7 +113,7 @@ {% trans %} Manual for configuring and using the point of sale app. {% endtrans %} - {{ gettext('Also available as <a href="%(link)s">PDF</a>.')|format(link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-pos-terminal.pdf") }} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-pos-terminal.pdf") }} </div> <div class="col-3"> @@ -158,7 +158,7 @@ {% trans %} Description of our taler.net setup and how to contribute. {% endtrans %} - {{ gettext('Also available as <a href="%(link)s">PDF</a>.')|format(link="https://" + siteconfitem['docshost'] + "/pdf/developers-manual.pdf") }} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/developers-manual.pdf") }} </div> </div>