diff --git a/django/bin/make-messages.py b/django/bin/make-messages.py index d8c5299e62..c78faac694 100755 --- a/django/bin/make-messages.py +++ b/django/bin/make-messages.py @@ -5,6 +5,8 @@ import os import sys import getopt +from django.utils.translation import templateize + localedir = None if os.path.isdir(os.path.join('conf', 'locale')): @@ -44,29 +46,6 @@ if lang is not None: elif all: languages = [el for el in os.listdir(localedir) if not el.startswith('.')] -dot_re = re.compile('\S') -def blank(src): - return dot_re.sub('p', src) - -def templateize(src): - o = [] - going = 1 - while going: - start = src.find('{') - if start >= 0 and src[start+1] in ('{', '%'): - o.append(blank(src[:start])) - end = src.find(src[start+1] == '{' and '}}' or '%}', start) - if end >= 0: - o.append(src[start:end+2]) - src = src[end+2:] - else: - o.append(blank(src[start:])) - going = 0 - else: - o.append(blank(src)) - going = 0 - return ''.join(o) - for lang in languages: print "processing language", lang diff --git a/django/conf/locale/de/LC_MESSAGES/django.mo b/django/conf/locale/de/LC_MESSAGES/django.mo index d9f0aea348..c8b9157d0c 100644 Binary files a/django/conf/locale/de/LC_MESSAGES/django.mo and b/django/conf/locale/de/LC_MESSAGES/django.mo differ diff --git a/django/conf/locale/de/LC_MESSAGES/django.po b/django/conf/locale/de/LC_MESSAGES/django.po index 19b8b726fb..e2481e89ce 100644 --- a/django/conf/locale/de/LC_MESSAGES/django.po +++ b/django/conf/locale/de/LC_MESSAGES/django.po @@ -7,44 +7,45 @@ msgid "" msgstr "" "Project-Id-Version: Django 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-10-24 00:03+0200\n" +"POT-Creation-Date: 2005-11-03 12:21+0100\n" "PO-Revision-Date: 2005-10-08 00:03+0200\n" "Last-Translator: Georg Bauer \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" -#: contrib/admin/templates/admin/object_history.html:4 -#: contrib/admin/templates/admin/base.html:28 -#: contrib/admin/templates/registration/password_change_done.html:3 -#: contrib/admin/templates/registration/password_reset_form.html:3 -#: contrib/admin/templates/registration/logged_out.html:3 -#: contrib/admin/templates/registration/password_reset_done.html:3 -#: contrib/admin/templates/registration/password_change_form.html:3 +#: contrib/admin/templates/admin/object_history.html:5 +#: contrib/admin/templates/admin/500.html:4 +#: contrib/admin/templates/admin/base.html:29 +#: contrib/admin/templates/registration/password_change_done.html:4 +#: contrib/admin/templates/registration/password_reset_form.html:4 +#: contrib/admin/templates/registration/logged_out.html:4 +#: contrib/admin/templates/registration/password_reset_done.html:4 +#: contrib/admin/templates/registration/password_change_form.html:4 msgid "Home" msgstr "Start" -#: contrib/admin/templates/admin/object_history.html:4 +#: contrib/admin/templates/admin/object_history.html:5 msgid "History" msgstr "Geschichte" -#: contrib/admin/templates/admin/object_history.html:17 +#: contrib/admin/templates/admin/object_history.html:18 msgid "Date/time" msgstr "Datum/Zeit" -#: contrib/admin/templates/admin/object_history.html:18 models/auth.py:47 +#: contrib/admin/templates/admin/object_history.html:19 models/auth.py:47 msgid "User" msgstr "Benutzer" -#: contrib/admin/templates/admin/object_history.html:19 +#: contrib/admin/templates/admin/object_history.html:20 msgid "Action" msgstr "Aktion" -#: contrib/admin/templates/admin/object_history.html:25 +#: contrib/admin/templates/admin/object_history.html:26 msgid "DATE_WITH_TIME_FULL" msgstr "j. N Y, H:i" -#: contrib/admin/templates/admin/object_history.html:35 +#: contrib/admin/templates/admin/object_history.html:36 msgid "" "This object doesn't have a change history. It probably wasn't added via this " "admin site." @@ -52,23 +53,27 @@ msgstr "" "Dieses Objekt hat keine Änderungsgeschichte. Es wurde möglicherweise nicht " "über diese Verwaltungsseiten angelegt." -#: contrib/admin/templates/admin/base_site.html:3 +#: contrib/admin/templates/admin/base_site.html:4 msgid "Django site admin" msgstr "Django Systemverwaltung" -#: contrib/admin/templates/admin/base_site.html:6 +#: contrib/admin/templates/admin/base_site.html:7 msgid "Django administration" msgstr "Django Verwaltung" -#: contrib/admin/templates/admin/500.html:5 +#: 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:8 +#: contrib/admin/templates/admin/500.html:9 msgid "Server Error (500)" msgstr "Serverfehler (500)" -#: contrib/admin/templates/admin/500.html:9 +#: 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." @@ -77,72 +82,72 @@ msgstr "" "eMail weitergegeben und sollte bald behoben sein. Vielen Dank für Ihr " "Verständnis." -#: contrib/admin/templates/admin/404.html:3 -#: contrib/admin/templates/admin/404.html:7 +#: 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:9 +#: 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:26 +#: contrib/admin/templates/admin/index.html:27 msgid "Add" msgstr "Zufügen" -#: contrib/admin/templates/admin/index.html:32 +#: contrib/admin/templates/admin/index.html:33 msgid "Change" msgstr "Ändern" -#: contrib/admin/templates/admin/index.html:42 +#: 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:50 +#: contrib/admin/templates/admin/index.html:51 msgid "Recent Actions" msgstr "Kürzliche Aktionen" -#: contrib/admin/templates/admin/index.html:51 +#: contrib/admin/templates/admin/index.html:52 msgid "My Actions" msgstr "Meine Aktionen" -#: contrib/admin/templates/admin/index.html:55 +#: contrib/admin/templates/admin/index.html:56 msgid "None available" msgstr "Keine vorhanden" -#: contrib/admin/templates/admin/login.html:14 +#: contrib/admin/templates/admin/login.html:15 msgid "Username:" msgstr "Benutzername:" -#: contrib/admin/templates/admin/login.html:17 +#: contrib/admin/templates/admin/login.html:18 msgid "Password:" msgstr "Passwort:" -#: contrib/admin/templates/admin/login.html:19 +#: contrib/admin/templates/admin/login.html:20 msgid "Have you forgotten your password?" msgstr "Haben Sie ihr Passwort vergessen?" -#: contrib/admin/templates/admin/login.html:23 +#: contrib/admin/templates/admin/login.html:24 msgid "Log in" msgstr "Anmelden" -#: contrib/admin/templates/admin/base.html:22 +#: contrib/admin/templates/admin/base.html:23 msgid "Welcome," msgstr "Willkommen," -#: contrib/admin/templates/admin/base.html:22 +#: contrib/admin/templates/admin/base.html:23 msgid "Change password" msgstr "Passwort ändern" -#: contrib/admin/templates/admin/base.html:22 +#: contrib/admin/templates/admin/base.html:23 msgid "Log out" msgstr "Abmelden" -#: contrib/admin/templates/admin/delete_confirmation.html:6 +#: contrib/admin/templates/admin/delete_confirmation.html:7 #, python-format msgid "" -"Deleting the %(object_name)s '%(object)s' would result in deleting related " +"Deleting the %(object_name)s '%(object)s' would result in deleting related " "objects, but your account doesn't have permission to delete the following " "types of objects:" msgstr "" @@ -150,7 +155,7 @@ msgstr "" "abhängigen Daten zur Folge, aber Sie haben nicht die nötigen Rechte um die " "folgenden abhängigen Daten zu löschen:" -#: contrib/admin/templates/admin/delete_confirmation.html:13 +#: contrib/admin/templates/admin/delete_confirmation.html:14 #, python-format msgid "" "Are you sure you want to delete the %(object_name)s \"%(object)s\"? All of " @@ -159,34 +164,33 @@ msgstr "" "Sind Sie sicher, das Sie %(object_name)s \"%(object)s\" löschen wollen? Es " "werden zusätzlich die folgenden abhängigen Daten mit gelöscht:" -#: contrib/admin/templates/admin/delete_confirmation.html:17 +#: contrib/admin/templates/admin/delete_confirmation.html:18 msgid "Yes, I'm sure" msgstr "Ja, ich bin sicher" -#: contrib/admin/templates/registration/password_change_done.html:3 -#: contrib/admin/templates/registration/password_change_form.html:3 -#: contrib/admin/templates/registration/password_change_form.html:5 -#: contrib/admin/templates/registration/password_change_form.html:9 +#: 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:6 +#: contrib/admin/templates/registration/password_change_form.html:10 msgid "Password change" msgstr "Kennwort ändern" -#: contrib/admin/templates/registration/password_change_done.html:5 -#: contrib/admin/templates/registration/password_change_done.html:9 +#: contrib/admin/templates/registration/password_change_done.html:6 +#: contrib/admin/templates/registration/password_change_done.html:10 msgid "Password change successful" msgstr "Erfolgreiche Kennwortänderung" -#: contrib/admin/templates/registration/password_change_done.html:11 +#: contrib/admin/templates/registration/password_change_done.html:12 msgid "Your password was changed." msgstr "Ihr Kennwort wurde geändert." -#: contrib/admin/templates/registration/password_reset_form.html:3 -#: contrib/admin/templates/registration/password_reset_form.html:5 -#: contrib/admin/templates/registration/password_reset_form.html:9 -#: contrib/admin/templates/registration/password_reset_done.html:3 +#: contrib/admin/templates/registration/password_reset_form.html:4 +#: contrib/admin/templates/registration/password_reset_form.html:6 +#: contrib/admin/templates/registration/password_reset_done.html:4 msgid "Password reset" msgstr "Kennwort zurücksetzen" -#: contrib/admin/templates/registration/password_reset_form.html:11 +#: contrib/admin/templates/registration/password_reset_form.html:12 msgid "" "Forgotten your password? Enter your e-mail address below, and we'll reset " "your password and e-mail the new one to you." @@ -195,28 +199,28 @@ msgstr "" "wir setzen das Kennwort auf einen neuen Wert und schicken den per eMail an " "Sie raus." -#: contrib/admin/templates/registration/password_reset_form.html:15 +#: contrib/admin/templates/registration/password_reset_form.html:16 msgid "E-mail address:" msgstr "eMail-Adresse:" -#: contrib/admin/templates/registration/password_reset_form.html:15 +#: contrib/admin/templates/registration/password_reset_form.html:16 msgid "Reset my password" msgstr "Mein Kennwort zurücksetzen" -#: contrib/admin/templates/registration/logged_out.html:7 +#: contrib/admin/templates/registration/logged_out.html:8 msgid "Thanks for spending some quality time with the Web site today." msgstr "Danke, dass Sie eine Weile bei uns waren." -#: contrib/admin/templates/registration/logged_out.html:9 +#: contrib/admin/templates/registration/logged_out.html:10 msgid "Log in again" msgstr "Neu anmelden" -#: contrib/admin/templates/registration/password_reset_done.html:5 -#: contrib/admin/templates/registration/password_reset_done.html:9 +#: contrib/admin/templates/registration/password_reset_done.html:6 +#: contrib/admin/templates/registration/password_reset_done.html:10 msgid "Password reset successful" msgstr "Erfolgreich Kennwort zurückgesetzt" -#: contrib/admin/templates/registration/password_reset_done.html:11 +#: contrib/admin/templates/registration/password_reset_done.html:12 msgid "" "We've e-mailed a new password to the e-mail address you submitted. You " "should be receiving it shortly." @@ -224,7 +228,7 @@ msgstr "" "Wir haben Ihnen ein neues Kennwort per eMail zugeschickt an die Adresse, die " "Sie uns gegeben haben. Es sollte in Kürze ankommen." -#: contrib/admin/templates/registration/password_change_form.html:11 +#: contrib/admin/templates/registration/password_change_form.html:12 msgid "" "Please enter your old password, for security's sake, and then enter your new " "password twice so we can verify you typed it in correctly." @@ -233,49 +237,49 @@ msgstr "" "dann zweimal (um sicherzustellen, das Sie es korrekt eingegeben haben) das " "neue Kennwort ein." -#: contrib/admin/templates/registration/password_change_form.html:16 +#: contrib/admin/templates/registration/password_change_form.html:17 msgid "Old password:" msgstr "altes Kennwort:" -#: contrib/admin/templates/registration/password_change_form.html:18 +#: contrib/admin/templates/registration/password_change_form.html:19 msgid "New password:" msgstr "neues Kennwort:" -#: contrib/admin/templates/registration/password_change_form.html:20 +#: contrib/admin/templates/registration/password_change_form.html:21 msgid "Confirm password:" msgstr "Kennwortwiederholung:" -#: contrib/admin/templates/registration/password_change_form.html:22 +#: contrib/admin/templates/registration/password_change_form.html:23 msgid "Change my password" msgstr "Mein Kennwort ändern" -#: contrib/admin/templates/registration/password_reset_email.html:1 +#: contrib/admin/templates/registration/password_reset_email.html:2 msgid "You're receiving this e-mail because you requested a password reset" msgstr "Sie erhalten diese Mail, weil Sie ein neues Kennwort" -#: contrib/admin/templates/registration/password_reset_email.html:2 +#: contrib/admin/templates/registration/password_reset_email.html:3 #, python-format msgid "for your user account at %(site_name)s" msgstr "für ihren Benutzer bei %(site_name)s angefordert haben." -#: contrib/admin/templates/registration/password_reset_email.html:4 +#: contrib/admin/templates/registration/password_reset_email.html:5 #, python-format msgid "Your new password is: %(new_password)s" msgstr "Ihr neues Kennwort ist: %(new_password)s" -#: contrib/admin/templates/registration/password_reset_email.html:6 +#: contrib/admin/templates/registration/password_reset_email.html:7 msgid "Feel free to change this password by going to this page:" msgstr "Sie können das Kennwort auf folgender Seite ändern:" -#: contrib/admin/templates/registration/password_reset_email.html:10 +#: contrib/admin/templates/registration/password_reset_email.html:11 msgid "Your username, in case you've forgotten:" msgstr "Ihr Benutzername, falls Sie ihn vergessen haben:" -#: contrib/admin/templates/registration/password_reset_email.html:12 +#: contrib/admin/templates/registration/password_reset_email.html:13 msgid "Thanks for using our site!" msgstr "Vielen Dank, das Sie unsere Seiten benutzen!" -#: contrib/admin/templates/registration/password_reset_email.html:14 +#: contrib/admin/templates/registration/password_reset_email.html:15 #, python-format msgid "The %(site_name)s team" msgstr "Das Team von %(site_name)s" @@ -653,44 +657,48 @@ msgid "Message" msgstr "Mitteilung" #: conf/global_settings.py:37 +msgid "Czech" +msgstr "Tschechisch" + +#: conf/global_settings.py:38 msgid "German" msgstr "Deutsch" -#: conf/global_settings.py:38 +#: conf/global_settings.py:39 msgid "English" msgstr "Englisch" -#: conf/global_settings.py:39 +#: conf/global_settings.py:40 msgid "Spanish" msgstr "Spanisch" -#: conf/global_settings.py:40 +#: conf/global_settings.py:41 msgid "French" msgstr "Französisch" -#: conf/global_settings.py:41 +#: conf/global_settings.py:42 msgid "Galician" msgstr "Galicisch" -#: conf/global_settings.py:42 +#: conf/global_settings.py:43 msgid "Italian" msgstr "Italienisch" -#: conf/global_settings.py:43 +#: conf/global_settings.py:44 msgid "Brazilian" msgstr "Brasilianisch" -#: conf/global_settings.py:44 +#: conf/global_settings.py:45 msgid "Russian" msgstr "Russisch" -#: conf/global_settings.py:45 -msgid "Serbic" +#: conf/global_settings.py:46 +msgid "Serbian" msgstr "Serbisch" -#: conf/global_settings.py:46 -msgid "Czech" -msgstr "Tschechisch" +#: conf/global_settings.py:47 +msgid "Traditional Chinese" +msgstr "" #: core/validators.py:58 msgid "This value must contain only letters, numbers and underscores." diff --git a/django/contrib/admin/templates/admin/404.html b/django/contrib/admin/templates/admin/404.html index 031d9d9877..d791f565ba 100644 --- a/django/contrib/admin/templates/admin/404.html +++ b/django/contrib/admin/templates/admin/404.html @@ -1,11 +1,12 @@ {% extends "admin/base_site" %} +{% load i18n %} -{% block title %}{{ _('Page not found') }}{% endblock %} +{% block title %}{% trans 'Page not found' %}{% endblock %} {% block content %} -

{{ _('Page not found') }}

+

{% trans 'Page not found' %}

-

{{ _("We're sorry, but the requested page could not be found.") }}

+

{% trans "We're sorry, but the requested page could not be found." %}

{% endblock %} diff --git a/django/contrib/admin/templates/admin/500.html b/django/contrib/admin/templates/admin/500.html index 75856d407e..9d3e3de32c 100644 --- a/django/contrib/admin/templates/admin/500.html +++ b/django/contrib/admin/templates/admin/500.html @@ -1,11 +1,12 @@ {% extends "admin/base_site" %} +{% load i18n %} -{% block breadcrumbs %}{% endblock %} +{% block breadcrumbs %}{% endblock %} -{% block title %}{{ _('Server error (500)') }}{% endblock %} +{% block title %}{% trans 'Server error (500)' %}{% endblock %} {% block content %} -

{{ _('Server Error (500)') }}

-

{{ _("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.") }}

+

{% trans 'Server Error (500)' %}

+

{% trans "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." %}

{% endblock %} diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index a007a9c788..0c0ae4aabd 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -6,6 +6,7 @@ {% block extrastyle %}{% endblock %} {% block extrahead %}{% endblock %} +{% load i18n %} @@ -19,13 +20,13 @@ {% block branding %}{% endblock %} {% if not user.is_anonymous %} -
{{ _('Welcome,') }} {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}.
{% block userlinks %}{{ _('Change password') }} / {{ _('Log out') }}{% endblock %}
+
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}.
{% block userlinks %}{% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %}
{% endif %} {% block nav-global %}{% endblock %}
- {% block breadcrumbs %}{% endblock %} + {% block breadcrumbs %}{% endblock %} {% endif %} {% if messages %} diff --git a/django/contrib/admin/templates/admin/base_site.html b/django/contrib/admin/templates/admin/base_site.html index 6494951be3..cb2ea43254 100644 --- a/django/contrib/admin/templates/admin/base_site.html +++ b/django/contrib/admin/templates/admin/base_site.html @@ -1,9 +1,10 @@ {% extends "admin/base" %} +{% load i18n %} -{% block title %}{{ title }} | {{ _('Django site admin') }}{% endblock %} +{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %} {% block branding %} -

{{ _('Django administration') }}

+

{% trans 'Django administration' %}

example.com

{% endblock %} diff --git a/django/contrib/admin/templates/admin/delete_confirmation.html b/django/contrib/admin/templates/admin/delete_confirmation.html index 4881e0825e..0bff003980 100644 --- a/django/contrib/admin/templates/admin/delete_confirmation.html +++ b/django/contrib/admin/templates/admin/delete_confirmation.html @@ -1,20 +1,21 @@ {% extends "admin/base_site" %} +{% load i18n %} {% block content %} {% if perms_lacking %} -

{{ _("Deleting the %(object_name)s '%(object)s' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:") }}

+

{% blocktrans %}Deleting the {{ object_name }} '{{ object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}

{% else %} -

{{ _('Are you sure you want to delete the %(object_name)s "%(object)s"? All of the following related items will be deleted:') }}

+

{% blocktrans %}Are you sure you want to delete the {{ object_name }} "{{ object }}"? All of the following related items will be deleted:{% endblocktrans %}

- +
{% endif %} diff --git a/django/contrib/admin/templates/admin/index.html b/django/contrib/admin/templates/admin/index.html index 0620caa7bc..9822ed92c2 100644 --- a/django/contrib/admin/templates/admin/index.html +++ b/django/contrib/admin/templates/admin/index.html @@ -1,4 +1,5 @@ {% extends "admin/base_site" %} +{% load i18n %} {% block coltype %}colMS{% endblock %} {% block bodyclass %}dashboard{% endblock %} @@ -23,13 +24,13 @@ {% endif %} {% if model.perms.add %} - {{ _('Add') }} + {% trans 'Add' %} {% else %}   {% endif %} {% if model.perms.change %} - {{ _('Change') }} + {% trans 'Change' %} {% else %}   {% endif %} @@ -39,7 +40,7 @@ {% endfor %} {% else %} -

{{ _("You don't have permission to edit anything.") }}

+

{% trans "You don't have permission to edit anything." %}

{% endif %} {% endblock %} @@ -47,12 +48,12 @@ {% block sidebar %}