From 608cf820b4bf63d0aa93a82b5f59f8d44170fd13 Mon Sep 17 00:00:00 2001 From: MS Date: Tue, 20 Oct 2020 14:37:16 +0200 Subject: fix i18n --- talerbank/app/locale/de/LC_MESSAGES/django.po | 18 ++++++++++++++++-- talerbank/app/locale/django.pot | 18 ++++++++++++++++-- talerbank/app/locale/it/LC_MESSAGES/django.po | 25 +++++++++++++++++++++---- talerbank/app/templates/profile_page.html | 2 +- talerbank/app/templates/withdraw_show.html | 4 ++-- talerbank/app/urls.py | 15 ++++++++------- 6 files changed, 64 insertions(+), 18 deletions(-) diff --git a/talerbank/app/locale/de/LC_MESSAGES/django.po b/talerbank/app/locale/de/LC_MESSAGES/django.po index 1fa486d..620219e 100644 --- a/talerbank/app/locale/de/LC_MESSAGES/django.po +++ b/talerbank/app/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-20 12:08+0000\n" +"POT-Creation-Date: 2020-10-20 12:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -213,10 +213,24 @@ msgid "" "her a random password generator." msgstr "" +#: talerbank/app/templates/withdraw_show.html:22 +msgid "Withdraw to a Taler Wallet" +msgstr "" + +#: talerbank/app/templates/withdraw_show.html:66 +#, python-brace-format +msgid "" +"Looks like your browser doesn't support GNU Taler payments. You can try " +"installing a wallet browser extension." +msgstr "" + #: talerbank/app/templates/withdraw_show.html:72 msgid "You can use this QR code to withdraw to your mobile wallet:" msgstr "" #: talerbank/app/templates/withdraw_show.html:77 -msgid "Click this link to open your system's " +"Taler wallet if it exists." msgstr "" diff --git a/talerbank/app/locale/django.pot b/talerbank/app/locale/django.pot index 813219b..209e6e1 100644 --- a/talerbank/app/locale/django.pot +++ b/talerbank/app/locale/django.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-20 12:08+0000\n" +"POT-Creation-Date: 2020-10-20 12:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -212,10 +212,24 @@ msgid "" "her a random password generator." msgstr "" +#: talerbank/app/templates/withdraw_show.html:22 +msgid "Withdraw to a Taler Wallet" +msgstr "" + +#: talerbank/app/templates/withdraw_show.html:66 +#, python-brace-format +msgid "" +"Looks like your browser doesn't support GNU Taler payments. You can try " +"installing a wallet browser extension." +msgstr "" + #: talerbank/app/templates/withdraw_show.html:72 msgid "You can use this QR code to withdraw to your mobile wallet:" msgstr "" #: talerbank/app/templates/withdraw_show.html:77 -msgid "Click this link to open your system's " +"Taler wallet if it exists." msgstr "" diff --git a/talerbank/app/locale/it/LC_MESSAGES/django.po b/talerbank/app/locale/it/LC_MESSAGES/django.po index 992a824..a07e82e 100644 --- a/talerbank/app/locale/it/LC_MESSAGES/django.po +++ b/talerbank/app/locale/it/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-20 12:08+0000\n" +"POT-Creation-Date: 2020-10-20 12:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -139,9 +139,8 @@ msgid "Amount to withdraw" msgstr "Cifra da ritirare" #: talerbank/app/templates/profile_page.html:73 -#| msgid "Amount to withdraw" msgid "Start withdrawal" -msgstr "Cifra da ritirare" +msgstr "Invia la richiesta" #: talerbank/app/templates/profile_page.html:78 msgid "Wire money" @@ -235,10 +234,28 @@ msgstr "" "Una banca vera dovrebbe comunicare un PIN aggiuntivo come misura di " "sicurezza,invece di un semplice calcolo come avviene in questa pagina." +#: talerbank/app/templates/withdraw_show.html:22 +#| msgid "Withdraw Money into a Taler wallet" +msgid "Withdraw to a Taler Wallet" +msgstr "Ricarica il tuo portafoglio Taler" + +#: talerbank/app/templates/withdraw_show.html:66 +#, python-brace-format +msgid "" +"Looks like your browser doesn't support GNU Taler payments. You can try " +"installing a wallet browser extension." +msgstr "" +"Sembra che il tuo browser non supporti i pagamenti Taler, prova ad installare " +"il portafoglio." + #: talerbank/app/templates/withdraw_show.html:72 msgid "You can use this QR code to withdraw to your mobile wallet:" msgstr "Usa questo QR-code per ricaricare il tuo portafoglio:" #: talerbank/app/templates/withdraw_show.html:77 -msgid "Click this link to open your system's " +"Taler wallet if it exists." msgstr "" +"Clicca qui per accedere al tuo portafoglio." diff --git a/talerbank/app/templates/profile_page.html b/talerbank/app/templates/profile_page.html index ead6643..1d81b51 100644 --- a/talerbank/app/templates/profile_page.html +++ b/talerbank/app/templates/profile_page.html @@ -70,7 +70,7 @@ + value="{{ _('Start withdrawal') }}" /> diff --git a/talerbank/app/templates/withdraw_show.html b/talerbank/app/templates/withdraw_show.html index 4fe8a3d..cb46141 100644 --- a/talerbank/app/templates/withdraw_show.html +++ b/talerbank/app/templates/withdraw_show.html @@ -19,7 +19,7 @@ {% extends "base.html" %} {% block headermsg %} -

Withdraw to a Taler Wallet

+

{{ _("Withdraw to a Taler Wallet") }}

{% endblock %} {% block head %} @@ -74,7 +74,7 @@ {{ qrcode_svg | safe }}

{% autoescape off %} - {{ _("Click this link to open your system's Taler wallet if it exists.").format(taler_withdraw_uri=taler_withdraw_uri) }} + {{ _("Click this link to open your system's Taler wallet if it exists.").format(taler_withdraw_uri=taler_withdraw_uri) }} {% endautoescape %}

diff --git a/talerbank/app/urls.py b/talerbank/app/urls.py index 0caade6..4d47cab 100644 --- a/talerbank/app/urls.py +++ b/talerbank/app/urls.py @@ -99,13 +99,6 @@ urlpatterns = [ views.abort_withdrawal, name="abort-withdrawal" ), - path("start-withdrawal", - views.start_withdrawal, - name="start-withdrawal"), - path("show-withdrawal/", - views.show_withdrawal, - name="withdraw-show" - ), path("favicon.ico", views.ignore), path("config", views.config_view, name="config"), path("history", views.serve_history, name="history"), @@ -117,6 +110,14 @@ urlpatterns = [ ] urlpatterns += i18n_patterns( + path("start-withdrawal", + views.start_withdrawal, + name="start-withdrawal"), + + path("show-withdrawal/", + views.show_withdrawal, + name="withdraw-show" + ), path("", RedirectView.as_view(pattern_name="profile"), name="index"), path("logout", views.logout_view, name="logout"), path("register", views.register, name="register"), -- cgit v1.2.3