taldir

Directory service to resolve wallet mailboxes by messenger addresses
Log | Files | Refs | Submodules | README | LICENSE

commit 3fc03097ac091b8bef4a1a05af885c2cb1ddf455
parent 8b9eef62d35fe7598896d6e0b50307e1f44171b4
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Thu, 23 Jan 2025 13:29:14 +0100

more i18n for disclaimer

Diffstat:
Mlocales/de-DE/taldir.yml | 1+
Mlocales/en-US/taldir.yml | 1+
Mpkg/rest/taldir.go | 3+++
Mweb/templates/landing.html | 4++--
Mweb/templates/nav.html | 5+----
5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/locales/de-DE/taldir.yml b/locales/de-DE/taldir.yml @@ -17,4 +17,5 @@ available: "Verfügbar" lookupPhoneNr: "Telefonnummer nachschlagen" lookupPhoneDescription: "Gib eine Telefonnummer ohne das `+` und ohne Leerzeichen ein (z.B. `49123456789`) um die dazugehörige Bezahlsystemadresse nachzuschlagen. Wenn diese noch nicht verlinkt ist, und das Alias unter Dir gehört, hast du dann die Chance dieses mit einer Bazahlsystemadresse zu verlinken." lookupResultFound: "Suchergebnis" +productDisclaimer: 'Dies ist eine Demo-Instanz des <b>Tal</b>er <b>Dir</b>ectory (TalDir) Dienstes. Der Dienst implementiert die <a href="https://docs.taler.net/core/api-taldir.html">Taler TalDir API-Spezifikation</a>. TalDir erlaubt es Dir dein Identitäts-Alias (wie z.B. Email-Adresse oder Telefonnummer) mit einer Bezahlsystemadresse (z.B. einer <a href="https://en.wikipedia.org/wiki/International_Bank_Account_Number">IBAN</a> oder <a href="https://www.rfc-editor.org/rfc/rfc8905">Taler Wallet-Adresse</a>) zu verlinken. <p><b>ACHTUNG:</b> Dieser Dienst ist eine Demo. Es ist kein fertiges Produkt. Die Entwicklung dieses Dienstes dauert an and wird von <a href="https://nlnet.nl/project/TALER-LookupService/">NLnet and NGI TALER</a> gefördert.</p>' diff --git a/locales/en-US/taldir.yml b/locales/en-US/taldir.yml @@ -17,3 +17,4 @@ available: "Available" lookupPhoneNr: "Lookup phone number" lookupPhoneDescription: "Enter a phone number without the `+` and no spaces (e.g. `49123456789`) to look up the associated Payment System Address. If it is still unlinked and under your control you will be given the option to link it with a Payment System Address after lookup." lookupResultFound: "Lookup result" +productDisclaimer: 'This is a demo instance of the <b>Tal</b>er <b>Dir</b>ectory (TalDir) service. It implements the <a href="https://docs.taler.net/core/api-taldir.html">Taler TalDir API specification</a>. TalDir allows you to link your identity aliases (such as email addresses or phone numbers) with a payment system address (e.g. an <a href="https://en.wikipedia.org/wiki/International_Bank_Account_Number">IBAN</a> or a <a href="https://www.rfc-editor.org/rfc/rfc8905">Taler wallet address</a>). <p><b>IMPORTANT:</b> This is a demo service. It is not production-ready. The development of this service is ongoing and is funded by <a href="https://nlnet.nl/project/TALER-LookupService/">NLnet and NGI TALER</a>.</p>' diff --git a/pkg/rest/taldir.go b/pkg/rest/taldir.go @@ -709,6 +709,9 @@ func (t *Taldir) landingPage(w http.ResponseWriter, r *http.Request) { fullData := map[string]interface{}{ "validators": t.Validators, "version": t.Version, + "lookupOrRegisterCardTitle": template.HTML(translateFunc("lookupOrRegister")), + "selectAliasToLookupOrLinkCardText": template.HTML(translateFunc("selectAliasToLookupOrLink")), + "productDisclaimer": template.HTML(translateFunc("productDisclaimer")), "error": r.URL.Query().Get("error"), "tr": translateFunc, } diff --git a/web/templates/landing.html b/web/templates/landing.html @@ -23,8 +23,8 @@ {{end}} <div class="card"> <div class="card-body"> - <h4 class="card-title">{{ call .tr "lookupOrRegister" }}</h4> - <p class="card-text">{{ call .tr "selectAliasToLookupOrLink"}}</p> + <h4 class="card-title">{{ .lookupOrRegisterCardTitle }}</h4> + <p class="card-text">{{ .selectAliasToLookupOrLinkCardText }}</p> {{range .validators}} <div class="row"> <div class="col-lg-4 mb-2 offset-lg-3 text-center d-grid gap-2"> diff --git a/web/templates/nav.html b/web/templates/nav.html @@ -9,9 +9,6 @@ <h4 class="alert-heading">{{ call .tr "demoService" }}</h4> <hr> <p class="mb-0"> - This is a demo instance of the <b>Tal</b>er <b>Dir</b>ectory (TalDir) service. It implements the <a href="https://docs.taler.net/core/api-taldir.html">Taler TalDir API specification</a>. TalDir allows you to link your identity aliases (such as email addresses or phone numbers) with a payment system address (e.g. an <a href="https://en.wikipedia.org/wiki/International_Bank_Account_Number">IBAN</a> or a <a href="https://www.rfc-editor.org/rfc/rfc8905">Taler wallet address</a>). - </p> - <p> - <b>IMPORTANT:</b> This is a demo service. It is not production-ready. The development of this service is ongoing and is funded by <a href="https://nlnet.nl/project/TALER-LookupService/">NLnet and NGI TALER</a>. + {{ .productDisclaimer }} </p> </div>