From b60d7ff98582798723fe64da12089d93e92bab85 Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Thu, 3 Nov 2005 11:25:18 +0000 Subject: [PATCH] i18n: implemented the proposed syntax change to {% trans %} and {% blocktrans %} git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@1061 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/bin/make-messages.py | 25 +-- django/conf/locale/de/LC_MESSAGES/django.mo | Bin 17758 -> 17824 bytes django/conf/locale/de/LC_MESSAGES/django.po | 172 +++++++------- django/contrib/admin/templates/admin/404.html | 7 +- django/contrib/admin/templates/admin/500.html | 9 +- .../contrib/admin/templates/admin/base.html | 5 +- .../admin/templates/admin/base_site.html | 5 +- .../templates/admin/delete_confirmation.html | 7 +- .../contrib/admin/templates/admin/index.html | 13 +- .../contrib/admin/templates/admin/login.html | 9 +- .../admin/templates/admin/object_history.html | 11 +- .../templates/registration/logged_out.html | 7 +- .../registration/password_change_done.html | 9 +- .../registration/password_change_form.html | 17 +- .../registration/password_reset_done.html | 9 +- .../registration/password_reset_email.html | 15 +- .../registration/password_reset_form.html | 11 +- django/core/template/__init__.py | 113 ++++++++-- django/templatetags/i18n.py | 210 ++++++++++++++++++ django/utils/translation.py | 88 ++++++++ 20 files changed, 558 insertions(+), 184 deletions(-) create mode 100644 django/templatetags/i18n.py 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 d9f0aea348512e5060e0934f97e5c32c763ed2fe..c8b9157d0c60f55e2c1858716a40112f55aeb206 100644 GIT binary patch delta 4488 zcmYk<3v`cV0LSrX%w@C9#w_2x)S^ zCH@+^$tVd?=cuD8UCv3mi0G8+r0?(lKL2xiPrrSh=e<3b_j%vHzFHDgSr+7c)hKwS zVLL@ylG$~QX%b}2g)r?kCNavG3{1lIScuuU7KhVmgpAFPMtFcv3c94^D|cmP}BPpFv*iE(e7 zfI2@NlW-ai#&wv7KcG4|+Mh@kF)iz=%wBR z)!_nE1I3t$C8&Xq`F>p9Jgadg2{3c4U4{Wq}nVrvPiBa2YWVma!(b=V0vVNX1T zJ+O9jw}YvuHIRlnKOJ?S!5E6en=}966dq(pJU)UExC+&wEvS+2wDtX{8y!MjcLclQ z8Ps+EqDC6t!WfFC6>5J9(l?WdS|hor4m{F=`ENj>fE~KweC&(QVGf?bw&>y2Sb&3Y zK7N87Fq;LCj76x9?81dugK9XhwYzAaKy|znHK3)aN4V0VpdPKYCu~OAG`mq#eFF6s ze1=*)mr*ymw~afMBe5^_v8WNR#c^1LtTPkS)?IuFs7F(Tn&~~L*WIb1pw;^)YJ@F$ z6-MGl)D3Q;Mi|K}p=X?q9r0-#jg>eGZ(=vh;$~c8=Ak;a5i{{y)W|zCZ5lv#tWEo- zHw8^~8g{~$Fb|pnNa4PCi<)a!ZMqR(u?q6-|n^D*A zMJ>|zw4e6PSqfT>7f?OFWb4pAv#9@b<3 z<5(XHt#i@Q;#zEXtV4}pGwQ}ZR6~c6kDNJyy3s|{h%ceeyMgu5c-#(zpgJ6ZIxiX{ zu^sCE$@aL{!~E;Q{yHIu-vFFOeSBwQ67VEyZQR5mI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Efu(E&%{;iD`$|p2B-)GcFqUHkX0vhh8!!bmk)@~!tU`T7>reyQWIx}9 z`i*%N9o^spl^NJzPw1QO-e4dma(ozS1?FQR?!yk~%g)nGIwNB-g~$V7_94Gl<~qjV z_qY!uGT4B49NS~?0M6y4R(l&U-4;abE~4?SV4X40hr&yn@4V5WTI$4X6u)2f4dC z619R|kSEIYLH3uKi3zv|^>bT?n!qj8`4RjQX>Y|kRP-ICVHoyDbubdOi^rp8HW{^< zim(+fLOoU`_VY4(d>2M?ywZMt9<>+VN8PspwHH1?y=R=Ssb~OES?&P3qE1Xjb&!D? zz;N`%ai|*5__fjOv-#-I;sw(E%s`_H^e-qiE2XR?+wmDW@? zk!YeDB@zvADA54anTozg4P>7hl=sOhvY9L-DksT)vVhDZvE(4pz>g92|G!dhTh~y_ z$xF{nC0EHFqN0sf?X4Me2HO#BGR;=y0MQ;;NuDCfIZlocz6Ec&%->Ul2SM)?$NOWUPuA*> zE!**RvX@*TBgjrNiOeGFh{`K2-VLhi1X4)4kVi>Vd5FqmWGV3_*<>RL)%ts=@SgFO zbpDnSeJ!0x4VglCF`8YZD`_fOwxSnIE_s`bA?-;S8B0!+4P*{EPwp<2G~Q81D$7Ye zSwi$9qoNnde6ofVlh;UFa)PKlPnwYxB!H+Sk#61^?+AQ`ykXmdH?i4GULfa)vyDF^ ziOOJd51FQhEqTb>*89_2V2^FZ3ewlMOROS=TqF}oCaEVXGf8*SQH}o!|NTc}7%3tT z{`Y~m7H8X4)_3teGTFBK;bL-uG$*4;8d*k~N@psE$kSvv8BZQ3Dm}ehoXR8KCjYa6 zm&ibJn9LC~n)&}aJA>gdFpucFTdwo2}q(#MmWoSvMTl$=s?Brz|n JCOCat(7z#^s51Zn 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 %}

    {% for obj in perms_lacking %}
  • {{ obj }}
  • {% endfor %}
{% 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 %}

    {{ deleted_objects|unordered_list }}
- +
{% 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 %}