From d4ddc15315fb100ea2080cace169d17134971574 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Mon, 26 Sep 2016 13:56:35 +0200 Subject: [PATCH] request_status.html: complete translation, no composing. --- index_service/locale/de/LC_MESSAGES/django.mo | Bin 5759 -> 5921 bytes index_service/locale/de/LC_MESSAGES/django.po | 53 +++++++++--------- index_service/templates/request_status.html | 12 +++- index_service/verification.py | 4 +- 4 files changed, 39 insertions(+), 30 deletions(-) diff --git a/index_service/locale/de/LC_MESSAGES/django.mo b/index_service/locale/de/LC_MESSAGES/django.mo index 9329481d4f5ba1cdd6362d07fa0562b8ce791044..2da2f5174fa98e6d34b18d0c985036be97f9d43e 100644 GIT binary patch delta 966 zcmZwFPe>F|9Ki8k=4QKVrPlbbv>~a8)kPCMXbEc)B!(0f)NR(C)uG*4o1L&C*i%6# zp`j2$BKmVJu^@uFh|r&7-HHgxQ&b-Md$R9u)J{G2&1c@*dB6AG@4cngTglSe<{Q4#uN5v%bx>Ox{Mkp|q2#Fi9p#Dmz0$B`Iv1uO9?>iC;jk25R2T1;WoX4-MVxIZs;T93*kPF804ld(P+Ecg-pCL(+1thk7!){zc zHY44&BCJ7D$WMlOXa=$?mQcT&LY?O}Y6k9ONmD<^iw1s$d+;r8#Ymk92?z^a(nxKh zHitcA3|V{lt#;{gXkmll1iA=4I*qMG7onNfMMS71Y%n}CO*eCe_kgU0MR%TXvHnHKJ#$n11kq9XVlZD}))SZO0* z5j$wxXwh|27Js6}L!WdMXYm*=VG&d7r3Ji$&oJ+o8n}Y*nOhD>XBZC#r5xVHk2sGH zaAt#aUux<=NXqcX8|0b3Vi$fxehP%84(vqMRuVU23J+pGvX;(c6w9~;-L}&hXZ#p# zodvY_USNj(^^Q(2f2`sJnMWeh5aWBiWfd>tb&SWPFF1kAc!?|~@ocBm$EhshDaOCZ z-sTT?OFwWLU*jZMn5Q?BG49^4A8f$>Y-UdmMq1$fWj}U`QpLM-hFkq z;EvTV+;nQiY&|_vC^}ctC#xmrR@$k$weg&{6512gkW;NVCGU9nviCfk^P-U_fr0#y zfy3T>WOuvwInv|5%JjL8s2l44d!Z8*Rw|U!jj>wEN&mNH&KpncOctHG`|6QfDZ45Z b%TBR&ZSt{n#o@8X|nbQ337O< diff --git a/index_service/locale/de/LC_MESSAGES/django.po b/index_service/locale/de/LC_MESSAGES/django.po index 0e8b576..0bf6af6 100644 --- a/index_service/locale/de/LC_MESSAGES/django.po +++ b/index_service/locale/de/LC_MESSAGES/django.po @@ -6,9 +6,9 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-26 09:07+0200\n" -"PO-Revision-Date: 2016-09-26 09:07+0100\n" -"Last-Translator: mabe \n" +"POT-Creation-Date: 2016-09-26 13:52+0200\n" +"PO-Revision-Date: 2016-09-26 13:55+0100\n" +"Last-Translator: Marian Beermann \n" "Language-Team: English \n" "Language: en_GB\n" "MIME-Version: 1.0\n" @@ -23,7 +23,7 @@ msgstr "" #: admin.py:7 admin.py:8 msgid "Qabel Index Admin" -msgstr "" +msgstr "Qabel Index Verwaltung" #: models.py:57 msgid "E-Mail address" @@ -49,10 +49,25 @@ msgstr "Code ist abgelaufen" msgid "This request has expired." msgstr "Dieser Code ist abgelaufen." +#: templates/request_status.html:5 +#| msgid "Request has expired" +msgid "Request confirmed" +msgstr "Bestätigt" + #: templates/request_status.html:7 -#, python-format -msgid "%(status_verb)s Qabel Index entry." -msgstr "Qabel Index Eintrag wurde %(status_verb)s." +#| msgid "Request has expired" +msgid "Request denied" +msgstr "Abgebrochen" + +#: templates/request_status.html:12 +#| msgid "%(status_verb)s Qabel Index entry." +msgid "Confirmed Qabel Index entry." +msgstr "Qabel Index Eintrag wurde bestätigt." + +#: templates/request_status.html:14 +#| msgid "%(status_verb)s Qabel Index entry." +msgid "Denied Qabel Index entry." +msgstr "Qabel Index Eintrag ist nicht erfolgt." #: templates/review.html:4 templates/review.html:11 msgid "Review entry" @@ -255,17 +270,6 @@ msgstr "" #: templates/verification/email.txt:38 #, python-format -#| msgid "" -#| "\n" -#| "The following link will take you to a page where you confirm or deny this " -#| "action.\n" -#| "\n" -#| "%(review_url)s\n" -#| "\n" -#| "If you did not sign up for Qabel, please ignore this mail, or make us " -#| "aware of\n" -#| "this by sending a mail to abuse@qabel." -#| "de.\n" msgid "" "\n" "The following link will take you to a page where you confirm or deny this " @@ -289,14 +293,6 @@ msgstr "" msgid "Qabel Index confirmation" msgstr "Qabel Index Bestätigung" -#: verification.py:157 -msgid "Confirmed" -msgstr "bestätigt" - -#: verification.py:163 -msgid "Denied" -msgstr "abgebrochen" - #: views.py:209 msgid "This code doesn't exist or expired" msgstr "Dieser Code ist ungültig oder abgelaufen" @@ -305,3 +301,8 @@ msgstr "Dieser Code ist ungültig oder abgelaufen" msgid "Confirmation code" msgstr "Bestätigungscode" +#~ msgid "Confirmed" +#~ msgstr "bestätigt" + +#~ msgid "Denied" +#~ msgstr "abgebrochen" diff --git a/index_service/templates/request_status.html b/index_service/templates/request_status.html index 2e70751..9d47f99 100644 --- a/index_service/templates/request_status.html +++ b/index_service/templates/request_status.html @@ -1,8 +1,16 @@ {% extends "index.html" %} {% load i18n %} -{% block title %}{{ status_verb }}{{ block.super }}{% endblock %} +{% if status == 'confirmed' %} +{% block title %}{% trans "Request confirmed" %}{{ block.super }}{% endblock %} +{% else %} +{% block title %}{% trans "Request denied" %}{{ block.super }}{% endblock %} +{% endif %} {% block content %} -

{% blocktrans %}{{ status_verb }} Qabel Index entry.{% endblocktrans %}

+{% if status == 'confirmed' %} +

{% trans "Confirmed Qabel Index entry." %}

+{% else %} +

{% trans "Denied Qabel Index entry." %}

+{% endif %} {% endblock %} diff --git a/index_service/verification.py b/index_service/verification.py index a33c0df..0477940 100644 --- a/index_service/verification.py +++ b/index_service/verification.py @@ -154,13 +154,13 @@ def expired(request): def confirmed(request): return render(request, 'request_status.html', { - 'status_verb': _('Confirmed'), + 'status': 'confirmed', }) def denied(request): return render(request, 'request_status.html', { - 'status_verb': _('Denied'), + 'status': 'denied', })