diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/docs.html.j2 | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/template/docs.html.j2 b/template/docs.html.j2 index d6fd4c4..6c84c44 100644 --- a/template/docs.html.j2 +++ b/template/docs.html.j2 @@ -37,11 +37,10 @@ <img src="{{ url('icons/icon-backend.svg') }}" height=60> <h3>{{ _("Merchant Backend Administration")}}</h3> </a> - {% trans baseurl=siteconfitem['docshost'] %} + {% trans %} Tutorial and manual for operating a merchant. - Also available as - <a href="https://{{ baseurl }}/pdf/taler-merchant-manual.pdf">PDF</a>. {% endtrans %} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-manual.pdf") }} </div> <div class="col-3"> @@ -49,11 +48,10 @@ <img src="{{ url('icons/icon-market.svg') }}" height=60> <h3>{{ _("Merchant API Tutorial") }}</h3> </a> - {% trans baseurl=siteconfitem['docshost'] %} + {% trans %} Tutorial for processing Taler payments using the merchant backend API. - Also available as - <a href="https://{{ baseurl }}/pdf/taler-merchant-api-tutorial.pdf">PDF</a>. {% endtrans %} + {{ 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"> @@ -61,11 +59,10 @@ <img src="{{ url('icons/icon-exchange.svg') }}" height=60> <h3>{{ _("Exchange")}}</h3> </a> - {% trans baseurl=siteconfitem['docshost'] %} + {% trans %} Operator's manual for the GNU Taler exchange. - Also available as - <a href="https://{{ baseurl }}/pdf/taler-exchange-manual.pdf">PDF</a>. {% endtrans %} + {{ 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,11 +70,10 @@ <img src="{{ url('icons/icon-bank.svg') }}" height=60> <h3>{{ _("Bank Integration") }}</h3> </a> - {% trans baseurl=siteconfitem['docshost'] %} + {% trans %} Manual for tightly integrating Taler with banking applications. - Also available as - <a href="https://{{ baseurl }}/pdf/taler-bank-manual.pdf">PDF</a>. {% endtrans %} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-bank-manual.pdf") }} </div> </div> @@ -103,11 +99,10 @@ <img src="{{ url('icons/icon-backoffice.svg') }}" height=60> <h3>{{ _("Back office") }}</h3> </a> - {% trans baseurl=siteconfitem['docshost'] %} + {% trans %} Manual to run the back-office Web application. - Also available as - <a href="https://{{ baseurl }}/pdf/taler-backoffice-manual.pdf">PDF</a>. {% endtrans %} + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-backoffice-manual.pdf") }} </div> <div class="col-3"> @@ -115,11 +110,10 @@ <img src="{{ url('icons/icon-market.svg') }}" height=60> <h3>{{ _("Merchant POS Terminal") }}</h3> </a> - {% trans baseurl=siteconfitem['docshost'] %} + {% trans %} Manual for configuring and using the point of sale app. - Also available as - <a href="https://{{ baseurl }}/pdf/taler-merchant-pos-terminal.pdf">PDF</a>. {% endtrans %} + {{ 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"> @@ -161,11 +155,10 @@ <img src="{{ url('icons/icon-developers.svg') }}" height=60> <h3>{{ _("Onboarding")}}</h3> </a> - {% trans baseurl=siteconfitem['docshost'] %} + {% trans %} Description of our taler.net setup and how to contribute. - Also available as {% endtrans %} - <a href="https://{{ baseurl }}/pdf/developers-manual.pdf">PDF</a>. + {{ gettext('Also available as <a href="%(link)s">PDF</a>.', link="https://" + siteconfitem['docshost'] + "/pdf/developers-manual.pdf") }} </div> </div> |