Skip to content

Commit

Permalink
request_status.html: complete translation, no composing.
Browse files Browse the repository at this point in the history
  • Loading branch information
enkore committed Sep 26, 2016
1 parent 689b9b2 commit d4ddc15
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 30 deletions.
Binary file modified index_service/locale/de/LC_MESSAGES/django.mo
Binary file not shown.
53 changes: 27 additions & 26 deletions index_service/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\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 <[email protected]>\n"
"Language-Team: English <[email protected]>\n"
"Language: en_GB\n"
"MIME-Version: 1.0\n"
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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 <a href=\"mailto:[email protected]\">abuse@qabel."
#| "de</a>.\n"
msgid ""
"\n"
"The following link will take you to a page where you confirm or deny this "
Expand All @@ -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"
Expand All @@ -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"
12 changes: 10 additions & 2 deletions index_service/templates/request_status.html
Original file line number Diff line number Diff line change
@@ -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 %}
<h2>{% blocktrans %}{{ status_verb }} Qabel Index entry.{% endblocktrans %}</h2>
{% if status == 'confirmed' %}
<h2>{% trans "Confirmed Qabel Index entry." %}</h2>
{% else %}
<h2>{% trans "Denied Qabel Index entry." %}</h2>
{% endif %}
{% endblock %}
4 changes: 2 additions & 2 deletions index_service/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})


Expand Down

0 comments on commit d4ddc15

Please sign in to comment.