mirror of
https://github.com/django/django.git
synced 2025-07-06 02:39:12 +00:00
new_admin: fixed a problem with make-messages.py and added first new translations (mostly to checkout the toolchain)
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d0ee6afcba
commit
5ef1cef158
Binary file not shown.
@ -7,15 +7,69 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Django 1.0\n"
|
"Project-Id-Version: Django 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2005-11-03 12:26+0100\n"
|
"POT-Creation-Date: 2005-11-04 15:21+0100\n"
|
||||||
"PO-Revision-Date: 2005-10-08 00:03+0200\n"
|
"PO-Revision-Date: 2005-10-08 00:03+0200\n"
|
||||||
"Last-Translator: Georg Bauer <gb@bofh.ms>\n"
|
"Last-Translator: Georg Bauer <gb@bofh.ms>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=iso-8859-1\n"
|
"Content-Type: text/plain; charset=iso-8859-1\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/object_history.html:5
|
#: contrib/admin/models/admin.py:6
|
||||||
|
msgid "action time"
|
||||||
|
msgstr "Zeit der Aktion"
|
||||||
|
|
||||||
|
#: contrib/admin/models/admin.py:9
|
||||||
|
msgid "object id"
|
||||||
|
msgstr "Objekt ID"
|
||||||
|
|
||||||
|
#: contrib/admin/models/admin.py:10
|
||||||
|
msgid "object repr"
|
||||||
|
msgstr "Objekt Darst."
|
||||||
|
|
||||||
|
#: contrib/admin/models/admin.py:11
|
||||||
|
msgid "action flag"
|
||||||
|
msgstr "Aktionskennzeichen"
|
||||||
|
|
||||||
|
#: contrib/admin/models/admin.py:12
|
||||||
|
msgid "change message"
|
||||||
|
msgstr "Änderungsmeldung"
|
||||||
|
|
||||||
|
#: contrib/admin/models/admin.py:15
|
||||||
|
msgid "log entry"
|
||||||
|
msgstr "Logeintrag"
|
||||||
|
|
||||||
|
#: contrib/admin/models/admin.py:16
|
||||||
|
msgid "log entries"
|
||||||
|
msgstr "Logeinträge"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/index.html:27
|
||||||
|
#: contrib/admin/templates/admin/change_form.html:14
|
||||||
|
msgid "Add"
|
||||||
|
msgstr "Zufügen"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/index.html:33
|
||||||
|
msgid "Change"
|
||||||
|
msgstr "Ändern"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/index.html:43
|
||||||
|
msgid "You don't have permission to edit anything."
|
||||||
|
msgstr "Sie haben keine Berechtigung irgendwas zu ändern."
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/index.html:51
|
||||||
|
msgid "Recent Actions"
|
||||||
|
msgstr "Kürzliche Aktionen"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/index.html:52
|
||||||
|
msgid "My Actions"
|
||||||
|
msgstr "Meine Aktionen"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/index.html:56
|
||||||
|
msgid "None available"
|
||||||
|
msgstr "Keine vorhanden"
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/500.html:4
|
#: contrib/admin/templates/admin/500.html:4
|
||||||
|
#: contrib/admin/templates/admin/object_history.html:5
|
||||||
|
#: contrib/admin/templates/admin/change_form.html:12
|
||||||
#: contrib/admin/templates/admin/base.html:29
|
#: contrib/admin/templates/admin/base.html:29
|
||||||
#: contrib/admin/templates/registration/password_change_done.html:4
|
#: contrib/admin/templates/registration/password_change_done.html:4
|
||||||
#: contrib/admin/templates/registration/password_reset_form.html:4
|
#: contrib/admin/templates/registration/password_reset_form.html:4
|
||||||
@ -25,7 +79,29 @@ msgstr ""
|
|||||||
msgid "Home"
|
msgid "Home"
|
||||||
msgstr "Start"
|
msgstr "Start"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/500.html:4
|
||||||
|
msgid "Server error"
|
||||||
|
msgstr "Serverfehler"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/500.html:6
|
||||||
|
msgid "Server error (500)"
|
||||||
|
msgstr "Serverfehler (500)"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/500.html:9
|
||||||
|
msgid "Server Error <em>(500)</em>"
|
||||||
|
msgstr "Serverfehler <em>(500)</em>"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/500.html:10
|
||||||
|
msgid ""
|
||||||
|
"There's been an error. It's been reported to the site administrators via e-"
|
||||||
|
"mail and should be fixed shortly. Thanks for your patience."
|
||||||
|
msgstr ""
|
||||||
|
"Es hat einen Fehler gegeben. Dieser Fehler wurde an die Serververwalter per "
|
||||||
|
"eMail weitergegeben und sollte bald behoben sein. Vielen Dank für Ihr "
|
||||||
|
"Verständnis."
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/object_history.html:5
|
#: contrib/admin/templates/admin/object_history.html:5
|
||||||
|
#: contrib/admin/templates/admin/change_form.html:19
|
||||||
msgid "History"
|
msgid "History"
|
||||||
msgstr "Geschichte"
|
msgstr "Geschichte"
|
||||||
|
|
||||||
@ -61,61 +137,6 @@ msgstr "Django Systemverwaltung"
|
|||||||
msgid "Django administration"
|
msgid "Django administration"
|
||||||
msgstr "Django Verwaltung"
|
msgstr "Django Verwaltung"
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/500.html:4
|
|
||||||
msgid "Server error"
|
|
||||||
msgstr "Serverfehler"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/500.html:6
|
|
||||||
msgid "Server error (500)"
|
|
||||||
msgstr "Serverfehler (500)"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/500.html:9
|
|
||||||
msgid "Server Error <em>(500)</em>"
|
|
||||||
msgstr "Serverfehler <em>(500)</em>"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/500.html:10
|
|
||||||
msgid ""
|
|
||||||
"There's been an error. It's been reported to the site administrators via e-"
|
|
||||||
"mail and should be fixed shortly. Thanks for your patience."
|
|
||||||
msgstr ""
|
|
||||||
"Es hat einen Fehler gegeben. Dieser Fehler wurde an die Serververwalter per "
|
|
||||||
"eMail weitergegeben und sollte bald behoben sein. Vielen Dank für Ihr "
|
|
||||||
"Verständnis."
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/404.html:4
|
|
||||||
#: contrib/admin/templates/admin/404.html:8
|
|
||||||
msgid "Page not found"
|
|
||||||
msgstr "Seite nicht gefunden"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/404.html:10
|
|
||||||
msgid "We're sorry, but the requested page could not be found."
|
|
||||||
msgstr ""
|
|
||||||
"Es tut uns leid, aber die angeforderte Seite kann nicht gefunden werden."
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/index.html:27
|
|
||||||
msgid "Add"
|
|
||||||
msgstr "Zufügen"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/index.html:33
|
|
||||||
msgid "Change"
|
|
||||||
msgstr "Ändern"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/index.html:43
|
|
||||||
msgid "You don't have permission to edit anything."
|
|
||||||
msgstr "Sie haben keine Berechtigung irgendwas zu ändern."
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/index.html:51
|
|
||||||
msgid "Recent Actions"
|
|
||||||
msgstr "Kürzliche Aktionen"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/index.html:52
|
|
||||||
msgid "My Actions"
|
|
||||||
msgstr "Meine Aktionen"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/index.html:56
|
|
||||||
msgid "None available"
|
|
||||||
msgstr "Keine vorhanden"
|
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/login.html:15
|
#: contrib/admin/templates/admin/login.html:15
|
||||||
msgid "Username:"
|
msgid "Username:"
|
||||||
msgstr "Benutzername:"
|
msgstr "Benutzername:"
|
||||||
@ -132,17 +153,33 @@ msgstr "Haben Sie <a href=\"/password_reset/\">ihr Passwort vergessen</a>?"
|
|||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr "Anmelden"
|
msgstr "Anmelden"
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/base.html:23
|
#: contrib/admin/templates/admin/404.html:4
|
||||||
msgid "Welcome,"
|
#: contrib/admin/templates/admin/404.html:8
|
||||||
msgstr "Willkommen,"
|
msgid "Page not found"
|
||||||
|
msgstr "Seite nicht gefunden"
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/base.html:23
|
#: contrib/admin/templates/admin/404.html:10
|
||||||
msgid "Change password"
|
msgid "We're sorry, but the requested page could not be found."
|
||||||
msgstr "Passwort ändern"
|
msgstr ""
|
||||||
|
"Es tut uns leid, aber die angeforderte Seite kann nicht gefunden werden."
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/base.html:23
|
#: contrib/admin/templates/admin/change_form.html:20
|
||||||
msgid "Log out"
|
msgid "View on site"
|
||||||
msgstr "Abmelden"
|
msgstr "Im Web Anzeigen"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/change_form.html:28
|
||||||
|
msgid "Please correct the error below."
|
||||||
|
msgid_plural "Please correct the errors below."
|
||||||
|
msgstr[0] "Bitte den Fehler korrigieren."
|
||||||
|
msgstr[1] "Bitte die Fehler korrigieren."
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/change_form.html:45
|
||||||
|
msgid "Ordering"
|
||||||
|
msgstr "Sortierung"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/change_form.html:48
|
||||||
|
msgid "Order:"
|
||||||
|
msgstr "Reihenfolge:"
|
||||||
|
|
||||||
#: contrib/admin/templates/admin/delete_confirmation.html:7
|
#: contrib/admin/templates/admin/delete_confirmation.html:7
|
||||||
#, python-format
|
#, python-format
|
||||||
@ -168,6 +205,18 @@ msgstr ""
|
|||||||
msgid "Yes, I'm sure"
|
msgid "Yes, I'm sure"
|
||||||
msgstr "Ja, ich bin sicher"
|
msgstr "Ja, ich bin sicher"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/base.html:23
|
||||||
|
msgid "Welcome,"
|
||||||
|
msgstr "Willkommen,"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/base.html:23
|
||||||
|
msgid "Change password"
|
||||||
|
msgstr "Passwort ändern"
|
||||||
|
|
||||||
|
#: contrib/admin/templates/admin/base.html:23
|
||||||
|
msgid "Log out"
|
||||||
|
msgstr "Abmelden"
|
||||||
|
|
||||||
#: contrib/admin/templates/registration/password_change_done.html:4
|
#: contrib/admin/templates/registration/password_change_done.html:4
|
||||||
#: contrib/admin/templates/registration/password_change_form.html:4
|
#: contrib/admin/templates/registration/password_change_form.html:4
|
||||||
#: contrib/admin/templates/registration/password_change_form.html:6
|
#: contrib/admin/templates/registration/password_change_form.html:6
|
||||||
@ -284,34 +333,6 @@ msgstr "Vielen Dank, das Sie unsere Seiten benutzen!"
|
|||||||
msgid "The %(site_name)s team"
|
msgid "The %(site_name)s team"
|
||||||
msgstr "Das Team von %(site_name)s"
|
msgstr "Das Team von %(site_name)s"
|
||||||
|
|
||||||
#: contrib/admin/models/admin.py:6
|
|
||||||
msgid "action time"
|
|
||||||
msgstr "Zeit der Aktion"
|
|
||||||
|
|
||||||
#: contrib/admin/models/admin.py:9
|
|
||||||
msgid "object id"
|
|
||||||
msgstr "Objekt ID"
|
|
||||||
|
|
||||||
#: contrib/admin/models/admin.py:10
|
|
||||||
msgid "object repr"
|
|
||||||
msgstr "Objekt Darst."
|
|
||||||
|
|
||||||
#: contrib/admin/models/admin.py:11
|
|
||||||
msgid "action flag"
|
|
||||||
msgstr "Aktionskennzeichen"
|
|
||||||
|
|
||||||
#: contrib/admin/models/admin.py:12
|
|
||||||
msgid "change message"
|
|
||||||
msgstr "Änderungsmeldung"
|
|
||||||
|
|
||||||
#: contrib/admin/models/admin.py:15
|
|
||||||
msgid "log entry"
|
|
||||||
msgstr "Logeintrag"
|
|
||||||
|
|
||||||
#: contrib/admin/models/admin.py:16
|
|
||||||
msgid "log entries"
|
|
||||||
msgstr "Logeinträge"
|
|
||||||
|
|
||||||
#: utils/dates.py:6
|
#: utils/dates.py:6
|
||||||
msgid "Monday"
|
msgid "Monday"
|
||||||
msgstr "Montag"
|
msgstr "Montag"
|
||||||
@ -656,47 +677,47 @@ msgstr "Wichtige Daten"
|
|||||||
msgid "Message"
|
msgid "Message"
|
||||||
msgstr "Mitteilung"
|
msgstr "Mitteilung"
|
||||||
|
|
||||||
#: conf/global_settings.py:37
|
#: conf/global_settings.py:38
|
||||||
msgid "Czech"
|
msgid "Czech"
|
||||||
msgstr "Tschechisch"
|
msgstr "Tschechisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:38
|
#: conf/global_settings.py:39
|
||||||
msgid "German"
|
msgid "German"
|
||||||
msgstr "Deutsch"
|
msgstr "Deutsch"
|
||||||
|
|
||||||
#: conf/global_settings.py:39
|
#: conf/global_settings.py:40
|
||||||
msgid "English"
|
msgid "English"
|
||||||
msgstr "Englisch"
|
msgstr "Englisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:40
|
#: conf/global_settings.py:41
|
||||||
msgid "Spanish"
|
msgid "Spanish"
|
||||||
msgstr "Spanisch"
|
msgstr "Spanisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:41
|
#: conf/global_settings.py:42
|
||||||
msgid "French"
|
msgid "French"
|
||||||
msgstr "Französisch"
|
msgstr "Französisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:42
|
#: conf/global_settings.py:43
|
||||||
msgid "Galician"
|
msgid "Galician"
|
||||||
msgstr "Galicisch"
|
msgstr "Galicisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:43
|
#: conf/global_settings.py:44
|
||||||
msgid "Italian"
|
msgid "Italian"
|
||||||
msgstr "Italienisch"
|
msgstr "Italienisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:44
|
#: conf/global_settings.py:45
|
||||||
msgid "Brazilian"
|
msgid "Brazilian"
|
||||||
msgstr "Brasilianisch"
|
msgstr "Brasilianisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:45
|
#: conf/global_settings.py:46
|
||||||
msgid "Russian"
|
msgid "Russian"
|
||||||
msgstr "Russisch"
|
msgstr "Russisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:46
|
#: conf/global_settings.py:47
|
||||||
msgid "Serbian"
|
msgid "Serbian"
|
||||||
msgstr "Serbisch"
|
msgstr "Serbisch"
|
||||||
|
|
||||||
#: conf/global_settings.py:47
|
#: conf/global_settings.py:48
|
||||||
msgid "Traditional Chinese"
|
msgid "Traditional Chinese"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -972,11 +993,11 @@ msgstr ""
|
|||||||
"Das Attribut %(attr)s in Zeile %(line)s hat einen ungültigen Wert. Die Zeile "
|
"Das Attribut %(attr)s in Zeile %(line)s hat einen ungültigen Wert. Die Zeile "
|
||||||
"beginnt mit \"%(start)s\"."
|
"beginnt mit \"%(start)s\"."
|
||||||
|
|
||||||
#: core/meta/fields.py:95
|
#: core/meta/fields.py:114
|
||||||
msgid " Separate multiple IDs with commas."
|
msgid " Separate multiple IDs with commas."
|
||||||
msgstr "Mehrere IDs können mit Komma getrennt werden."
|
msgstr "Mehrere IDs können mit Komma getrennt werden."
|
||||||
|
|
||||||
#: core/meta/fields.py:98
|
#: core/meta/fields.py:117
|
||||||
msgid ""
|
msgid ""
|
||||||
" Hold down \"Control\", or \"Command\" on a Mac, to select more than one."
|
" Hold down \"Control\", or \"Command\" on a Mac, to select more than one."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{% extends "admin/base_site" %}
|
{% extends "admin/base_site" %}
|
||||||
|
{% load i18n %}
|
||||||
{% load admin_modify %}
|
{% load admin_modify %}
|
||||||
{% load adminmedia %}
|
{% load adminmedia %}
|
||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
@ -8,21 +9,25 @@
|
|||||||
{% block bodyclass %}{{app_label}}-{{bound_manipulator.object_name.lower}} change-form{% endblock %}
|
{% block bodyclass %}{{app_label}}-{{bound_manipulator.object_name.lower}} change-form{% endblock %}
|
||||||
{% block breadcrumbs %}{% if not is_popup %}
|
{% block breadcrumbs %}{% if not is_popup %}
|
||||||
<div class="breadcrumbs">
|
<div class="breadcrumbs">
|
||||||
<a href="../../../">Home</a> ›
|
<a href="../../../">{% trans "Home" %}</a> ›
|
||||||
<a href="../">{{bound_manipulator.verbose_name_plural|capfirst}}</a> ›
|
<a href="../">{{bound_manipulator.verbose_name_plural|capfirst}}</a> ›
|
||||||
{% if add %}Add {{bound_manipulator.verbose_name}}{% else %}{{bound_manipulator.original|striptags|truncatewords:"18"}}{% endif %}
|
{% if add %}{% trans "Add" %} {{bound_manipulator.verbose_name}}{% else %}{{bound_manipulator.original|striptags|truncatewords:"18"}}{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}{% endblock %}
|
{% endif %}{% endblock %}
|
||||||
{% block content %}<div id="content-main">
|
{% block content %}<div id="content-main">
|
||||||
{% if change %}{% if not is_popup %}
|
{% if change %}{% if not is_popup %}
|
||||||
<ul class="object-tools"><li><a href="history/" class="historylink">History</a></li>
|
<ul class="object-tools"><li><a href="history/" class="historylink">{% trans "History" %}</a></li>
|
||||||
{% if bound_manipulator.has_absolute_url %}<li><a href="/r/{{ bound_manipulator.content_type_id }}/{{ object_id }}/" class="viewsitelink">View on site</a></li>{% endif%}
|
{% if bound_manipulator.has_absolute_url %}<li><a href="/r/{{ bound_manipulator.content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}{% endif %}
|
{% endif %}{% endif %}
|
||||||
<form {{ bound_manipulator.form_enc_attrib }} action='{{ form_url }}' method="post">{% block form_top %}{%endblock%}
|
<form {{ bound_manipulator.form_enc_attrib }} action='{{ form_url }}' method="post">{% block form_top %}{%endblock%}
|
||||||
{% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
|
{% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
|
||||||
{% if bound_manipulator.save_on_top %}{% submit_row %}{% endif %}
|
{% if bound_manipulator.save_on_top %}{% submit_row %}{% endif %}
|
||||||
{% if form.error_dict %}<p class="errornote">Please correct the error{{ form.error_dict.items|pluralize }} below.</p>{% endif %}
|
{% if form.error_dict %}
|
||||||
|
<p class="errornote">
|
||||||
|
{% blocktrans count form.error_dict.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% for bound_field_set in bound_manipulator.bound_field_sets %}
|
{% for bound_field_set in bound_manipulator.bound_field_sets %}
|
||||||
<fieldset class="module aligned {{ bound_field_set.classes }}">
|
<fieldset class="module aligned {{ bound_field_set.classes }}">
|
||||||
{% if bound_field_set.name %}<h2>{{bound_field_set.name }}</h2>{% endif %}
|
{% if bound_field_set.name %}<h2>{{bound_field_set.name }}</h2>{% endif %}
|
||||||
@ -37,10 +42,10 @@
|
|||||||
{% block after_field_sets %}{% endblock %}
|
{% block after_field_sets %}{% endblock %}
|
||||||
{% if change %}
|
{% if change %}
|
||||||
{% if bound_manipulator.ordered_objects %}
|
{% if bound_manipulator.ordered_objects %}
|
||||||
<fieldset class="module"><h2>Ordering</h2>
|
<fieldset class="module"><h2>{% trans "Ordering" %}</h2>
|
||||||
<div class="form-row{% if form.order_.errors %} error{% endif %} ">
|
<div class="form-row{% if form.order_.errors %} error{% endif %} ">
|
||||||
{% if form.order_.errors %}{{ form.order_.html_error_list }}{% endif %}
|
{% if form.order_.errors %}{{ form.order_.html_error_list }}{% endif %}
|
||||||
<p><label for="id_order_">Order:</label> {{ form.order_ }}</p>
|
<p><label for="id_order_">{% trans "Order:" %}</label> {{ form.order_ }}</p>
|
||||||
</div></fieldset>
|
</div></fieldset>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -68,4 +73,4 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form></div>
|
</form></div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -366,7 +366,7 @@ endblock_re = re.compile(r"""^\s*endblocktrans$""")
|
|||||||
plural_re = re.compile(r"""^\s*plural$""")
|
plural_re = re.compile(r"""^\s*plural$""")
|
||||||
constant_re = re.compile(r"""_\(((?:".*?")|(?:'.*?'))\)""")
|
constant_re = re.compile(r"""_\(((?:".*?")|(?:'.*?'))\)""")
|
||||||
def templateize(src):
|
def templateize(src):
|
||||||
from django.core.template import tokenize, TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK
|
from django.core.template import Lexer, TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK
|
||||||
"""
|
"""
|
||||||
This function turns a django template into something that is
|
This function turns a django template into something that is
|
||||||
understood by xgettext. It does so by translating the django
|
understood by xgettext. It does so by translating the django
|
||||||
@ -377,7 +377,7 @@ def templateize(src):
|
|||||||
inplural = False
|
inplural = False
|
||||||
singular = []
|
singular = []
|
||||||
plural = []
|
plural = []
|
||||||
for t in tokenize(src):
|
for t in Lexer(src, None).tokenize():
|
||||||
if intrans:
|
if intrans:
|
||||||
if t.token_type == TOKEN_BLOCK:
|
if t.token_type == TOKEN_BLOCK:
|
||||||
endbmatch = endblock_re.match(t.contents)
|
endbmatch = endblock_re.match(t.contents)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user