Mark a few more strings for translation.

Also updated the English translation catalog.

Fixes bug #12.
This commit is contained in:
Jannis Leidel
2014-10-05 22:03:53 +02:00
parent 6be811f747
commit a869aa6abe
4 changed files with 40 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-19 15:17+0200\n"
"POT-Creation-Date: 2014-10-05 21:46+0200\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n"
@@ -13,22 +13,47 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: contrib/formtools/apps.py:8
#: apps.py:7
msgid "Form Tools"
msgstr ""
#: contrib/formtools/templates/formtools/wizard/wizard_form.html:15
#: templates/formtools/form.html:6
msgid "Please correct the following errors"
msgstr ""
#: templates/formtools/form.html:6 templates/formtools/preview.html:24
msgid "Submit"
msgstr ""
#: templates/formtools/form.html:13 templates/formtools/preview.html:34
msgid "Preview"
msgstr ""
#: templates/formtools/preview.html:6
msgid "Preview your submission"
msgstr ""
#: templates/formtools/preview.html:17
#, python-format
msgid "Security hash: %(hash_value)s"
msgstr ""
#: templates/formtools/preview.html:27
msgid "Or edit it again"
msgstr ""
#: templates/formtools/wizard/wizard_form.html:15
msgid "first step"
msgstr ""
#: contrib/formtools/templates/formtools/wizard/wizard_form.html:16
#: templates/formtools/wizard/wizard_form.html:16
msgid "prev step"
msgstr ""
#: contrib/formtools/templates/formtools/wizard/wizard_form.html:18
#: templates/formtools/wizard/wizard_form.html:18
msgid "submit"
msgstr ""
#: contrib/formtools/wizard/views.py:276
#: wizard/views.py:276
msgid "ManagementForm data is missing or has been tampered."
msgstr ""

View File

@@ -1,15 +1,16 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% if form.errors %}<h1>Please correct the following errors</h1>{% else %}<h1>Submit</h1>{% endif %}
{% if form.errors %}<h1>{% trans "Please correct the following errors" %}</h1>{% else %}<h1>{% trans "Submit" %}</h1>{% endif %}
<form action="" method="post">{% csrf_token %}
<table>
{{ form }}
</table>
<input type="hidden" name="{{ stage_field }}" value="1" />
<p><input type="submit" value="Preview" /></p>
<p><input type="submit" value="{% trans "Preview" %}" /></p>
</form>
{% endblock %}

View File

@@ -1,8 +1,9 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<h1>Preview your submission</h1>
<h1>{% trans "Preview your submission" %}</h1>
<table>
{% for field in form %}
@@ -13,24 +14,24 @@
{% endfor %}
</table>
<p>Security hash: {{ hash_value }}</p>
<p>{% blocktrans %}Security hash: {{ hash_value }}{% endblocktrans %}</p>
<form action="" method="post">{% csrf_token %}
{% for field in form %}{{ field.as_hidden }}
{% endfor %}
<input type="hidden" name="{{ stage_field }}" value="2" />
<input type="hidden" name="{{ hash_field }}" value="{{ hash_value }}" />
<p><input type="submit" value="Submit" /></p>
<p><input type="submit" value="{% trans "Submit" %}" /></p>
</form>
<h1>Or edit it again</h1>
<h1>{% trans "Or edit it again" %}</h1>
<form action="" method="post">{% csrf_token %}
<table>
{{ form }}
</table>
<input type="hidden" name="{{ stage_field }}" value="1" />
<p><input type="submit" value="Preview" /></p>
<p><input type="submit" value="{% trans "Preview" %}" /></p>
</form>
{% endblock %}