Changeset 1061
- Timestamp:
- 11/03/05 05:25:18 (3 years ago)
- Files:
-
- django/branches/i18n/django/bin/make-messages.py (modified) (2 diffs)
- django/branches/i18n/django/conf/locale/de/LC_MESSAGES/django.mo (modified) (previous)
- django/branches/i18n/django/conf/locale/de/LC_MESSAGES/django.po (modified) (10 diffs)
- django/branches/i18n/django/contrib/admin/templates/admin/404.html (modified) (1 diff)
- django/branches/i18n/django/contrib/admin/templates/admin/500.html (modified) (1 diff)
- django/branches/i18n/django/contrib/admin/templates/admin/base.html (modified) (3 diffs)
- django/branches/i18n/django/contrib/admin/templates/admin/base_site.html (modified) (1 diff)
- django/branches/i18n/django/contrib/admin/templates/admin/delete_confirmation.html (modified) (2 diffs)
- django/branches/i18n/django/contrib/admin/templates/admin/index.html (modified) (5 diffs)
- django/branches/i18n/django/contrib/admin/templates/admin/login.html (modified) (2 diffs)
- django/branches/i18n/django/contrib/admin/templates/admin/object_history.html (modified) (3 diffs)
- django/branches/i18n/django/contrib/admin/templates/registration/logged_out.html (modified) (1 diff)
- django/branches/i18n/django/contrib/admin/templates/registration/password_change_done.html (modified) (1 diff)
- django/branches/i18n/django/contrib/admin/templates/registration/password_change_form.html (modified) (1 diff)
- django/branches/i18n/django/contrib/admin/templates/registration/password_reset_done.html (modified) (1 diff)
- django/branches/i18n/django/contrib/admin/templates/registration/password_reset_email.html (modified) (1 diff)
- django/branches/i18n/django/contrib/admin/templates/registration/password_reset_form.html (modified) (1 diff)
- django/branches/i18n/django/core/template/__init__.py (modified) (6 diffs)
- django/branches/i18n/django/templatetags/i18n.py (added)
- django/branches/i18n/django/utils/translation.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/i18n/django/bin/make-messages.py
r907 r1061 5 5 import sys 6 6 import getopt 7 8 from django.utils.translation import templateize 7 9 8 10 localedir = None … … 44 46 elif all: 45 47 languages = [el for el in os.listdir(localedir) if not el.startswith('.')] 46 47 dot_re = re.compile('\S')48 def blank(src):49 return dot_re.sub('p', src)50 51 def templateize(src):52 o = []53 going = 154 while going:55 start = src.find('{')56 if start >= 0 and src[start+1] in ('{', '%'):57 o.append(blank(src[:start]))58 end = src.find(src[start+1] == '{' and '}}' or '%}', start)59 if end >= 0:60 o.append(src[start:end+2])61 src = src[end+2:]62 else:63 o.append(blank(src[start:]))64 going = 065 else:66 o.append(blank(src))67 going = 068 return ''.join(o)69 48 70 49 for lang in languages: django/branches/i18n/django/conf/locale/de/LC_MESSAGES/django.po
r1001 r1061 8 8 "Project-Id-Version: Django 1.0\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2005-1 0-24 00:03+0200\n"10 "POT-Creation-Date: 2005-11-03 12:21+0100\n" 11 11 "PO-Revision-Date: 2005-10-08 00:03+0200\n" 12 12 "Last-Translator: Georg Bauer <gb@bofh.ms>\n" … … 15 15 "Content-Transfer-Encoding: 8bit\n" 16 16 17 #: contrib/admin/templates/admin/object_history.html:4 18 #: contrib/admin/templates/admin/base.html:28 19 #: contrib/admin/templates/registration/password_change_done.html:3 20 #: contrib/admin/templates/registration/password_reset_form.html:3 21 #: contrib/admin/templates/registration/logged_out.html:3 22 #: contrib/admin/templates/registration/password_reset_done.html:3 23 #: contrib/admin/templates/registration/password_change_form.html:3 17 #: contrib/admin/templates/admin/object_history.html:5 18 #: contrib/admin/templates/admin/500.html:4 19 #: contrib/admin/templates/admin/base.html:29 20 #: contrib/admin/templates/registration/password_change_done.html:4 21 #: contrib/admin/templates/registration/password_reset_form.html:4 22 #: contrib/admin/templates/registration/logged_out.html:4 23 #: contrib/admin/templates/registration/password_reset_done.html:4 24 #: contrib/admin/templates/registration/password_change_form.html:4 24 25 msgid "Home" 25 26 msgstr "Start" 26 27 27 #: contrib/admin/templates/admin/object_history.html: 428 #: contrib/admin/templates/admin/object_history.html:5 28 29 msgid "History" 29 30 msgstr "Geschichte" 30 31 31 #: contrib/admin/templates/admin/object_history.html:1 732 #: contrib/admin/templates/admin/object_history.html:18 32 33 msgid "Date/time" 33 34 msgstr "Datum/Zeit" 34 35 35 #: contrib/admin/templates/admin/object_history.html:1 8models/auth.py:4736 #: contrib/admin/templates/admin/object_history.html:19 models/auth.py:47 36 37 msgid "User" 37 38 msgstr "Benutzer" 38 39 39 #: contrib/admin/templates/admin/object_history.html: 1940 #: contrib/admin/templates/admin/object_history.html:20 40 41 msgid "Action" 41 42 msgstr "Aktion" 42 43 43 #: contrib/admin/templates/admin/object_history.html:2 544 #: contrib/admin/templates/admin/object_history.html:26 44 45 msgid "DATE_WITH_TIME_FULL" 45 46 msgstr "j. N Y, H:i" 46 47 47 #: contrib/admin/templates/admin/object_history.html:3 548 #: contrib/admin/templates/admin/object_history.html:36 48 49 msgid "" 49 50 "This object doesn't have a change history. It probably wasn't added via this " … … 53 54 "�iese Verwaltungsseiten angelegt." 54 55 55 #: contrib/admin/templates/admin/base_site.html: 356 #: contrib/admin/templates/admin/base_site.html:4 56 57 msgid "Django site admin" 57 58 msgstr "Django Systemverwaltung" 58 59 59 #: contrib/admin/templates/admin/base_site.html: 660 #: contrib/admin/templates/admin/base_site.html:7 60 61 msgid "Django administration" 61 62 msgstr "Django Verwaltung" 62 63 63 #: contrib/admin/templates/admin/500.html:5 64 #: contrib/admin/templates/admin/500.html:4 65 msgid "Server error" 66 msgstr "Serverfehler" 67 68 #: contrib/admin/templates/admin/500.html:6 64 69 msgid "Server error (500)" 65 70 msgstr "Serverfehler (500)" 66 71 67 #: contrib/admin/templates/admin/500.html: 872 #: contrib/admin/templates/admin/500.html:9 68 73 msgid "Server Error <em>(500)</em>" 69 74 msgstr "Serverfehler <em>(500)</em>" 70 75 71 #: contrib/admin/templates/admin/500.html: 976 #: contrib/admin/templates/admin/500.html:10 72 77 msgid "" 73 78 "There's been an error. It's been reported to the site administrators via e-" … … 78 83 "Verst�nis." 79 84 80 #: contrib/admin/templates/admin/404.html: 381 #: contrib/admin/templates/admin/404.html: 785 #: contrib/admin/templates/admin/404.html:4 86 #: contrib/admin/templates/admin/404.html:8 82 87 msgid "Page not found" 83 88 msgstr "Seite nicht gefunden" 84 89 85 #: contrib/admin/templates/admin/404.html: 990 #: contrib/admin/templates/admin/404.html:10 86 91 msgid "We're sorry, but the requested page could not be found." 87 92 msgstr "" 88 93 "Es tut uns leid, aber die angeforderte Seite kann nicht gefunden werden." 89 94 90 #: contrib/admin/templates/admin/index.html:2 695 #: contrib/admin/templates/admin/index.html:27 91 96 msgid "Add" 92 97 msgstr "Zuf� 93 #: contrib/admin/templates/admin/index.html:3 298 #: contrib/admin/templates/admin/index.html:33 94 99 msgid "Change" 95 100 msgstr "�dern" 96 101 97 #: contrib/admin/templates/admin/index.html:4 2102 #: contrib/admin/templates/admin/index.html:43 98 103 msgid "You don't have permission to edit anything." 99 104 msgstr "Sie haben keine Berechtigung irgendwas zu �ern." 100 105 101 #: contrib/admin/templates/admin/index.html:5 0106 #: contrib/admin/templates/admin/index.html:51 102 107 msgid "Recent Actions" 103 108 msgstr "K�he Aktionen" 104 109 105 #: contrib/admin/templates/admin/index.html:5 1110 #: contrib/admin/templates/admin/index.html:52 106 111 msgid "My Actions" 107 112 msgstr "Meine Aktionen" 108 113 109 #: contrib/admin/templates/admin/index.html:5 5114 #: contrib/admin/templates/admin/index.html:56 110 115 msgid "None available" 111 116 msgstr "Keine vorhanden" 112 117 113 #: contrib/admin/templates/admin/login.html:1 4118 #: contrib/admin/templates/admin/login.html:15 114 119 msgid "Username:" 115 120 msgstr "Benutzername:" 116 121 117 #: contrib/admin/templates/admin/login.html:1 7122 #: contrib/admin/templates/admin/login.html:18 118 123 msgid "Password:" 119 124 msgstr "Passwort:" 120 125 121 #: contrib/admin/templates/admin/login.html: 19126 #: contrib/admin/templates/admin/login.html:20 122 127 msgid "Have you <a href=\"/password_reset/\">forgotten your password</a>?" 123 128 msgstr "Haben Sie <a href=\"/password_reset/\">ihr Passwort vergessen</a>?" 124 129 125 #: contrib/admin/templates/admin/login.html:2 3130 #: contrib/admin/templates/admin/login.html:24 126 131 msgid "Log in" 127 132 msgstr "Anmelden" 128 133 129 #: contrib/admin/templates/admin/base.html:2 2134 #: contrib/admin/templates/admin/base.html:23 130 135 msgid "Welcome," 131 136 msgstr "Willkommen," 132 137 133 #: contrib/admin/templates/admin/base.html:2 2138 #: contrib/admin/templates/admin/base.html:23 134 139 msgid "Change password" 135 140 msgstr "Passwort �ern" 136 141 137 #: contrib/admin/templates/admin/base.html:2 2142 #: contrib/admin/templates/admin/base.html:23 138 143 msgid "Log out" 139 144 msgstr "Abmelden" 140 145 141 #: contrib/admin/templates/admin/delete_confirmation.html: 6142 #, python-format 143 msgid "" 144 "Deleting the %(object_name)s '%(object)s' would result in deleting related "146 #: contrib/admin/templates/admin/delete_confirmation.html:7 147 #, python-format 148 msgid "" 149 "Deleting the %(object_name)s '%(object)s' would result in deleting related " 145 150 "objects, but your account doesn't have permission to delete the following " 146 151 "types of objects:" … … 150 155 "folgenden abh�igen Daten zu l�en:" 151 156 152 #: contrib/admin/templates/admin/delete_confirmation.html:1 3157 #: contrib/admin/templates/admin/delete_confirmation.html:14 153 158 #, python-format 154 159 msgid "" … … 159 164 "werden zus�lich die folgenden abh�igen Daten mit gel�t:" 160 165 161 #: contrib/admin/templates/admin/delete_confirmation.html:1 7166 #: contrib/admin/templates/admin/delete_confirmation.html:18 162 167 msgid "Yes, I'm sure" 163 168 msgstr "Ja, ich bin sicher" 164 169 165 #: contrib/admin/templates/registration/password_change_done.html: 3166 #: contrib/admin/templates/registration/password_change_form.html: 3167 #: contrib/admin/templates/registration/password_change_form.html: 5168 #: contrib/admin/templates/registration/password_change_form.html: 9170 #: contrib/admin/templates/registration/password_change_done.html:4 171 #: contrib/admin/templates/registration/password_change_form.html:4 172 #: contrib/admin/templates/registration/password_change_form.html:6 173 #: contrib/admin/templates/registration/password_change_form.html:10 169 174 msgid "Password change" 170 175 msgstr "Kennwort �ern" 171 176 172 #: contrib/admin/templates/registration/password_change_done.html: 5173 #: contrib/admin/templates/registration/password_change_done.html: 9177 #: contrib/admin/templates/registration/password_change_done.html:6 178 #: contrib/admin/templates/registration/password_change_done.html:10 174 179 msgid "Password change successful" 175 180 msgstr "Erfolgreiche Kennwort�erung" 176 181 177 #: contrib/admin/templates/registration/password_change_done.html:1 1182 #: contrib/admin/templates/registration/password_change_done.html:12 178 183 msgid "Your password was changed." 179 184 msgstr "Ihr Kennwort wurde ge�ert." 180 185 181 #: contrib/admin/templates/registration/password_reset_form.html:3 182 #: contrib/admin/templates/registration/password_reset_form.html:5 183 #: contrib/admin/templates/registration/password_reset_form.html:9 184 #: contrib/admin/templates/registration/password_reset_done.html:3 186 #: contrib/admin/templates/registration/password_reset_form.html:4 187 #: contrib/admin/templates/registration/password_reset_form.html:6 188 #: contrib/admin/templates/registration/password_reset_done.html:4 185 189 msgid "Password reset" 186 190 msgstr "Kennwort zur�zen" 187 191 188 #: contrib/admin/templates/registration/password_reset_form.html:1 1192 #: contrib/admin/templates/registration/password_reset_form.html:12 189 193 msgid "" 190 194 "Forgotten your password? Enter your e-mail address below, and we'll reset " … … 195 199 "Sie raus." 196 200 197 #: contrib/admin/templates/registration/password_reset_form.html:1 5201 #: contrib/admin/templates/registration/password_reset_form.html:16 198 202 msgid "E-mail address:" 199 203 msgstr "eMail-Adresse:" 200 204 201 #: contrib/admin/templates/registration/password_reset_form.html:1 5205 #: contrib/admin/templates/registration/password_reset_form.html:16 202 206 msgid "Reset my password" 203 207 msgstr "Mein Kennwort zur�zen" 204 208 205 #: contrib/admin/templates/registration/logged_out.html: 7209 #: contrib/admin/templates/registration/logged_out.html:8 206 210 msgid "Thanks for spending some quality time with the Web site today." 207 211 msgstr "Danke, dass Sie eine Weile bei uns waren." 208 212 209 #: contrib/admin/templates/registration/logged_out.html: 9213 #: contrib/admin/templates/registration/logged_out.html:10 210 214 msgid "Log in again" 211 215 msgstr "Neu anmelden" 212 216 213 #: contrib/admin/templates/registration/password_reset_done.html: 5214 #: contrib/admin/templates/registration/password_reset_done.html: 9217 #: contrib/admin/templates/registration/password_reset_done.html:6 218 #: contrib/admin/templates/registration/password_reset_done.html:10 215 219 msgid "Password reset successful" 216 220 msgstr "Erfolgreich Kennwort zur�etzt" 217 221 218 #: contrib/admin/templates/registration/password_reset_done.html:1 1222 #: contrib/admin/templates/registration/password_reset_done.html:12 219 223 msgid "" 220 224 "We've e-mailed a new password to the e-mail address you submitted. You " … … 224 228 "Sie uns gegeben haben. Es sollte in K�nkommen." 225 229 226 #: contrib/admin/templates/registration/password_change_form.html:1 1230 #: contrib/admin/templates/registration/password_change_form.html:12 227 231 msgid "" 228 232 "Please enter your old password, for security's sake, and then enter your new " … … 233 237 "neue Kennwort ein." 234 238 235 #: contrib/admin/templates/registration/password_change_form.html:1 6239 #: contrib/admin/templates/registration/password_change_form.html:17 236 240 msgid "Old password:" 237 241 msgstr "altes Kennwort:" 238 242 239 #: contrib/admin/templates/registration/password_change_form.html:1 8243 #: contrib/admin/templates/registration/password_change_form.html:19 240 244 msgid "New password:" 241 245 msgstr "neues Kennwort:" 242 246 243 #: contrib/admin/templates/registration/password_change_form.html:2 0247 #: contrib/admin/templates/registration/password_change_form.html:21 244 248 msgid "Confirm password:" 245 249 msgstr "Kennwortwiederholung:" 246 250 247 #: contrib/admin/templates/registration/password_change_form.html:2 2251 #: contrib/admin/templates/registration/password_change_form.html:23 248 252 msgid "Change my password" 249 253 msgstr "Mein Kennwort �ern" 250 254 251 #: contrib/admin/templates/registration/password_reset_email.html: 1255 #: contrib/admin/templates/registration/password_reset_email.html:2 252 256 msgid "You're receiving this e-mail because you requested a password reset" 253 257 msgstr "Sie erhalten diese Mail, weil Sie ein neues Kennwort" 254 258 255 #: contrib/admin/templates/registration/password_reset_email.html: 2259 #: contrib/admin/templates/registration/password_reset_email.html:3 256 260 #, python-format 257 261 msgid "for your user account at %(site_name)s" 258 262 msgstr "f�en Benutzer bei %(site_name)s angefordert haben." 259 263 260 #: contrib/admin/templates/registration/password_reset_email.html: 4264 #: contrib/admin/templates/registration/password_reset_email.html:5 261 265 #, python-format 262 266 msgid "Your new password is: %(new_password)s" 263 267 msgstr "Ihr neues Kennwort ist: %(new_password)s" 264 268 265 #: contrib/admin/templates/registration/password_reset_email.html: 6269 #: contrib/admin/templates/registration/password_reset_email.html:7 266 270 msgid "Feel free to change this password by going to this page:" 267 271 msgstr "Sie k�n das Kennwort auf folgender Seite �ern:" 268 272 269 #: contrib/admin/templates/registration/password_reset_email.html:1 0273 #: contrib/admin/templates/registration/password_reset_email.html:11 270 274 msgid "Your username, in case you've forgotten:" 271 275 msgstr "Ihr Benutzername, falls Sie ihn vergessen haben:" 272 276 273 #: contrib/admin/templates/registration/password_reset_email.html:1 2277 #: contrib/admin/templates/registration/password_reset_email.html:13 274 278 msgid "Thanks for using our site!" 275 279 msgstr "Vielen Dank, das Sie unsere Seiten benutzen!" 276 280 277 #: contrib/admin/templates/registration/password_reset_email.html:1 4281 #: contrib/admin/templates/registration/password_reset_email.html:15 278 282 #, python-format 279 283 msgid "The %(site_name)s team" … … 653 657 654 658 #: conf/global_settings.py:37 659 msgid "Czech" 660 msgstr "Tschechisch" 661 662 #: conf/global_settings.py:38 655 663 msgid "German" 656 664 msgstr "Deutsch" 657 665 658 #: conf/global_settings.py:3 8666 #: conf/global_settings.py:39 659 667 msgid "English" 660 668 msgstr "Englisch" 661 669 662 #: conf/global_settings.py: 39670 #: conf/global_settings.py:40 663 671 msgid "Spanish" 664 672 msgstr "Spanisch" 665 673 666 #: conf/global_settings.py:4 0674 #: conf/global_settings.py:41 667 675 msgid "French" 668 676 msgstr "Franz�ch" 669 677 670 #: conf/global_settings.py:4 1678 #: conf/global_settings.py:42 671 679 msgid "Galician" 672 680 msgstr "Galicisch" 673 681 674 #: conf/global_settings.py:4 2682 #: conf/global_settings.py:43 675 683 msgid "Italian" 676 684 msgstr "Italienisch" 677 685 678 #: conf/global_settings.py:4 3686 #: conf/global_settings.py:44 679 687 msgid "Brazilian" 680 688 msgstr "Brasilianisch" 681 689 682 #: conf/global_settings.py:4 4690 #: conf/global_settings.py:45 683 691 msgid "Russian" 684 692 msgstr "Russisch" 685 693 686 #: conf/global_settings.py:4 5687 msgid "Serbi c"694 #: conf/global_settings.py:46 695 msgid "Serbian" 688 696 msgstr "Serbisch" 689 697 690 #: conf/global_settings.py:4 6691 msgid " Czech"692 msgstr " Tschechisch"698 #: conf/global_settings.py:47 699 msgid "Traditional Chinese" 700 msgstr "" 693 701 694 702 #: core/validators.py:58 django/branches/i18n/django/contrib/admin/templates/admin/404.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 {% block title %}{ { _('Page not found') }}{% endblock %}4 {% block title %}{% trans 'Page not found' %}{% endblock %} 4 5 5 6 {% block content %} 6 7 7 <h2>{ { _('Page not found') }}</h2>8 <h2>{% trans 'Page not found' %}</h2> 8 9 9 <p>{ { _("We're sorry, but the requested page could not be found.") }}</p>10 <p>{% trans "We're sorry, but the requested page could not be found." %}</p> 10 11 11 12 {% endblock %} django/branches/i18n/django/contrib/admin/templates/admin/500.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/"> Home</a> › Server error</div>{% endblock %}4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans "Home" %}</a> › {% trans "Server error" %}</div>{% endblock %} 4 5 5 {% block title %}{ { _('Server error (500)') }}{% endblock %}6 {% block title %}{% trans 'Server error (500)' %}{% endblock %} 6 7 7 8 {% block content %} 8 <h1>{ { _('Server Error <em>(500)</em>') }}</h1>9 <p>{ { _("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.") }}</p>9 <h1>{% trans 'Server Error <em>(500)</em>' %}</h1> 10 <p>{% 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." %}</p> 10 11 11 12 {% endblock %} django/branches/i18n/django/contrib/admin/templates/admin/base.html
r956 r1061 7 7 {% block extrahead %}{% endblock %} 8 8 </head> 9 {% load i18n %} 9 10 10 11 <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"> … … 20 21 </div> 21 22 {% if not user.is_anonymous %} 22 <div id="user-tools">{ { _('Welcome,') }} <strong>{% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}</strong>. <br />{% block userlinks %}<a href="/admin/password_change/">{{ _('Change password') }}</a> / <a href="/admin/logout/">{{ _('Log out') }}</a>{% endblock %}</div>23 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}</strong>. <br />{% block userlinks %}<a href="/admin/password_change/">{% trans 'Change password' %}</a> / <a href="/admin/logout/">{% trans 'Log out' %}</a>{% endblock %}</div> 23 24 {% endif %} 24 25 {% block nav-global %}{% endblock %} … … 26 27 </div> 27 28 <!-- END Header --> 28 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{ { _('Home') }}</a>{% if title %} › {{ title }}{% endif %}</div>{% endblock %}29 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} › {{ title }}{% endif %}</div>{% endblock %} 29 30 {% endif %} 30 31 django/branches/i18n/django/contrib/admin/templates/admin/base_site.html
r956 r1061 1 1 {% extends "admin/base" %} 2 {% load i18n %} 2 3 3 {% block title %}{{ title }} | { { _('Django site admin') }}{% endblock %}4 {% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %} 4 5 5 6 {% block branding %} 6 <h1 id="site-name">{ { _('Django administration') }}</h1>7 <h1 id="site-name">{% trans 'Django administration' %}</h1> 7 8 <h2 id="site-url"><a href="http://www.example.com/">example.com</a></h2> 8 9 {% endblock %} django/branches/i18n/django/contrib/admin/templates/admin/delete_confirmation.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 4 {% block content %} 4 5 5 6 {% if perms_lacking %} 6 <p>{ { _("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:") }}</p>7 <p>{% 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 %}</p> 7 8 <ul> 8 9 {% for obj in perms_lacking %} … … 11 12 </ul> 12 13 {% else %} 13 <p>{ { _('Are you sure you want to delete the %(object_name)s "%(object)s"? All of the following related items will be deleted:') }}</p>14 <p>{% blocktrans %}Are you sure you want to delete the {{ object_name }} "{{ object }}"? All of the following related items will be deleted:{% endblocktrans %}</p> 14 15 <ul>{{ deleted_objects|unordered_list }}</ul> 15 16 <form action="" method="post"> 16 17 <input type="hidden" name="post" value="yes" /> 17 <input type="submit" value="{ { _("Yes, I'm sure") }}" />18 <input type="submit" value="{% trans "Yes, I'm sure" %}" /> 18 19 </form> 19 20 {% endif %} django/branches/i18n/django/contrib/admin/templates/admin/index.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 4 {% block coltype %}colMS{% endblock %} … … 24 25 25 26 {% if model.perms.add %} 26 <td class="x50"><a href="{{ model.admin_url }}add/" class="addlink">{ { _('Add') }}</a></td>27 <td class="x50"><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td> 27 28 {% else %} 28 29 <td class="x50"> </td> … … 30 31 31 32 {% if model.perms.change %} 32 <td class="x75"><a href="{{ model.admin_url }}" class="changelink">{ { _('Change') }}</a></td>33 <td class="x75"><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td> 33 34 {% else %} 34 35 <td class="x75"> </td> … … 40 41 {% endfor %} 41 42 {% else %} 42 <p>{ { _("You don't have permission to edit anything.") }}</p>43 <p>{% trans "You don't have permission to edit anything." %}</p> 43 44 {% endif %} 44 45 </div> … … 48 49 <div id="content-related"> 49 50 <div class="module" id="recent-actions-module"> 50 <h2>{ { _('Recent Actions') }}</h2>51 <h3>{ { _('My Actions') }}</h3>51 <h2>{% trans 'Recent Actions' %}</h2> 52 <h3>{% trans 'My Actions' %}</h3> 52 53 {% load log %} 53 54 {% get_admin_log 10 as admin_log for_user user %} 54 55 {% if not admin_log %} 55 <p>{ { _('None available') }}</p>56 <p>{% trans 'None available' %}</p> 56 57 {% else %} 57 58 <ul class="actionlist"> django/branches/i18n/django/contrib/admin/templates/admin/login.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 4 {% block breadcrumbs %}{% endblock %} … … 12 13 13 14 <p class="aligned"> 14 <label for="id_username">{ { _('Username:') }}</label> <input type="text" name="username" id="id_username" />15 <label for="id_username">{% trans 'Username:' %}</label> <input type="text" name="username" id="id_username" /> 15 16 </p> 16 17 <p class="aligned"> 17 <label for="id_password">{ { _('Password:') }}</label> <input type="password" name="password" id="id_password" />18 <label for="id_password">{% trans 'Password:' %}</label> <input type="password" name="password" id="id_password" /> 18 19 <input type="hidden" name="this_is_the_login_form" value="1" /> 19 <input type="hidden" name="post_data" value="{{ post_data }}" />{% comment %} <span class="help">{ { _('Have you <a href="/password_reset/">forgotten your password</a>?') }}</span>{% endcomment %}20 <input type="hidden" name="post_data" value="{{ post_data }}" />{% comment %} <span class="help">{% trans 'Have you <a href="/password_reset/">forgotten your password</a>?' %}</span>{% endcomment %} 20 21 </p> 21 22 22 23 <div class="aligned "> 23 <label> </label><input type="submit" value="{ { _('Log in') }}" />24 <label> </label><input type="submit" value="{% trans 'Log in' %}" /> 24 25 </div> 25 26 </form> django/branches/i18n/django/contrib/admin/templates/admin/object_history.html
r996 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 4 {% block breadcrumbs %} 4 <div class="breadcrumbs"><a href="../../../../">{ { _('Home') }}</a> › <a href="../../">{{ module_name }}</a> › <a href="../">{{ object|truncatewords:"18" }}</a> › {{ _('History') }}</div>5 <div class="breadcrumbs"><a href="../../../../">{% trans 'Home' %}</a> › <a href="../../">{{ module_name }}</a> › <a href="../">{{ object|truncatewords:"18" }}</a> › {% trans 'History' %}</div> 5 6 {% endblock %} 6 7 … … 15 16 <thead> 16 17 <tr> 17 <th>{ { _('Date/time') }}</th>18 <th>{ { _('User') }}</th>19 <th>{ { _('Action') }}</th>18 <th>{% trans 'Date/time' %}</th> 19 <th>{% trans 'User' %}</th> 20 <th>{% trans 'Action' %}</th> 20 21 </tr> 21 22 </thead> … … 33 34 {% else %} 34 35 35 <p>{ { _("This object doesn't have a change history. It probably wasn't added via this admin site.") }}</p>36 <p>{% trans "This object doesn't have a change history. It probably wasn't added via this admin site." %}</p> 36 37 37 38 {% endif %} django/branches/i18n/django/contrib/admin/templates/registration/logged_out.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ { _('Home') }}</a></div>{% endblock %}4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a></div>{% endblock %} 4 5 5 6 {% block content %} 6 7 7 <p>{ { _("Thanks for spending some quality time with the Web site today.") }}</p>8 <p>{% trans "Thanks for spending some quality time with the Web site today." %}</p> 8 9 9 <p><a href="../">{ { _('Log in again') }}</a></p>10 <p><a href="../">{% trans 'Log in again' %}</a></p> 10 11 11 12 {% endblock %} django/branches/i18n/django/contrib/admin/templates/registration/password_change_done.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ { _('Home') }}</a> › {{ _('Password change') }}</div>{% endblock %}4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> › {% trans 'Password change' %}</div>{% endblock %} 4 5 5 {% block title %}{ { _('Password change successful') }}{% endblock %}6 {% block title %}{% trans 'Password change successful' %}{% endblock %} 6 7 7 8 {% block content %} 8 9 9 <h1>{ { _('Password change successful') }}</h1>10 <h1>{% trans 'Password change successful' %}</h1> 10 11 11 <p>{ { _('Your password was changed.') }}</p>12 <p>{% trans 'Your password was changed.' %}</p> 12 13 13 14 {% endblock %} django/branches/i18n/django/contrib/admin/templates/registration/password_change_form.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ { _('Home') }}</a> › {{ _('Password change') }}</div>{% endblock %}4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> › {% trans 'Password change' %}</div>{% endblock %} 4 5 5 {% block title %}{ { _('Password change') }}{% endblock %}6 {% block title %}{% trans 'Password change' %}{% endblock %} 6 7 7 8 {% block content %} 8 9 9 <h1>{ { _('Password change') }}</h1>10 <h1>{% trans 'Password change' %}</h1> 10 11 11 <p>{ { _("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.") }}</p>12 <p>{% trans "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." %}</p> 12 13 13 14 <form action="" method="post"> 14 15 15 16 {% if form.old_password.errors %}{{ form.old_password.html_error_list }}{% endif %} 16 <p class="aligned wide"><label for="id_old_password">{ { _('Old password:') }}</label>{{ form.old_password }}</p>17 <p class="aligned wide"><label for="id_old_password">{% trans 'Old password:' %}</label>{{ form.old_password }}</p> 17 18 {% if form.new_password1.errors %}{{ form.new_password1.html_error_list }}{% endif %} 18 <p class="aligned wide"><label for="id_new_password1">{ { _('New password:') }}</label>{{ form.new_password1 }}</p>19 <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p> 19 20 {% if form.new_password2.errors %}{{ form.new_password2.html_error_list }}{% endif %} 20 <p class="aligned wide"><label for="id_new_password2">{ { _('Confirm password:') }}</label>{{ form.new_password2 }}</p>21 <p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p> 21 22 22 <p><input type="submit" value="{ { _('Change my password') }}" /></p>23 <p><input type="submit" value="{% trans 'Change my password' %}" /></p> 23 24 </form> 24 25 django/branches/i18n/django/contrib/admin/templates/registration/password_reset_done.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ { _('Home') }}</a> › {{ _('Password reset') }}</div>{% endblock %}4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> › {% trans 'Password reset' %}</div>{% endblock %} 4 5 5 {% block title %}{ { _('Password reset successful') }}{% endblock %}6 {% block title %}{% trans 'Password reset successful' %}{% endblock %} 6 7 7 8 {% block content %} 8 9 9 <h1>{ { _('Password reset successful') }}</h1>10 <h1>{% trans 'Password reset successful' %}</h1> 10 11 11 <p>{ { _("We've e-mailed a new password to the e-mail address you submitted. You should be receiving it shortly.") }}</p>12 <p>{% trans "We've e-mailed a new password to the e-mail address you submitted. You should be receiving it shortly." %}</p> 12 13 13 14 {% endblock %} django/branches/i18n/django/contrib/admin/templates/registration/password_reset_email.html
r956 r1061 1 {{ _("You're receiving this e-mail because you requested a password reset") }} 2 {{ _("for your user account at %(site_name)s") }}. 1 {% load i18n %} 2 {% trans "You're receiving this e-mail because you requested a password reset" %} 3 {% trans "for your user account at %(site_name)s" %}. 3 4 4 { { _("Your new password is: %(new_password)s") }}5 {% trans "Your new password is: %(new_password)s" %} 5 6 6 { { _("Feel free to change this password by going to this page:") }}7 {% trans "Feel free to change this password by going to this page:" %} 7 8 8 9 http://{{ domain }}/password_change/ 9 10 10 { { _("Your username, in case you've forgotten:") }} {{ user.username }}11 {% trans "Your username, in case you've forgotten:" %} {{ user.username }} 11 12 12 { { _("Thanks for using our site!") }}13 {% trans "Thanks for using our site!" %} 13 14 14 { { _("The %(site_name)s team") }}15 {% trans "The %(site_name)s team" %} django/branches/i18n/django/contrib/admin/templates/registration/password_reset_form.html
r956 r1061 1 1 {% extends "admin/base_site" %} 2 {% load i18n %} 2 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ { _('Home') }}</a> › {{ _('Password reset') }}</div>{% endblock %}4 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> › {% trans 'Password reset' %}</div>{% endblock %} 4 5 5 {% block title %}{ { _("Password reset") }}{% endblock %}6 {% block title %}{% trans "Password reset" %}{% endblock %} 6 7 7 8 {% block content %} 8 9 9 <h1>{ { _("Password reset") }}</h1>10 <h1>{% trans "Password reset") }}</h1> 10 11 11 <p>{ { _("Forgotten your password? Enter your e-mail address below, and we'll reset your password and e-mail the new one to you.") }}</p>12 <p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll reset your password and e-mail the new one to you." %}</p> 12 13 13 14 <form action="" method="post"> 14 15 {% if form.email.errors %}{{ form.email.html_error_list }}{% endif %} 15 <p><label for="id_email">{ { _('E-mail address:') }}</label> {{ form.email }} <input type="submit" value="{{ _('Reset my password') }}" /></p>16 <p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p> 16 17 </form> 17 18 django/branches/i18n/django/core/template/__init__.py
r869 r1061 235 235 del self.tokens[0] 236 236 237 class TokenParser: 238 """ 239 You need to subclass this class and implement the 240 top method to parse your template line. When instantiating 241 the parser, you pass in the line from the django template 242 parser. 243 244 If your tag needs to know what tag name it was called with, 245 you find it in the tagname instance variable of the parser. 246 """ 247 248 def __init__(self, subject): 249 self.subject = subject 250 self.pointer = 0 251 self.backout = [] 252 self.tagname = self.tag() 253 254 def top(self): 255 """ 256 You need to overload this method to do the actual parsing 257 and return the result. 258 """ 259 raise NotImplemented 260 261 def more(self): 262 """ 263 This returns True if there is more stuff in the tag. 264 """ 265 return self.pointer < len(self.subject) 266 <
