Changeset 763
- Timestamp:
- 10/01/05 11:47:15 (3 years ago)
- Files:
-
- django/branches/i18n/django/bin/make-messages.py (modified) (2 diffs)
- django/branches/i18n/django/conf/admin_templates/404.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/500.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/admin_object_history.html (modified) (3 diffs)
- django/branches/i18n/django/conf/admin_templates/base.html (modified) (2 diffs)
- django/branches/i18n/django/conf/admin_templates/base_site.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/changelist_generic.html (modified) (2 diffs)
- django/branches/i18n/django/conf/admin_templates/delete_confirmation_generic.html (modified) (2 diffs)
- django/branches/i18n/django/conf/admin_templates/index.html (modified) (4 diffs)
- django/branches/i18n/django/conf/admin_templates/login.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/registration/logged_out.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/registration/password_change_done.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/registration/password_change_form.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/registration/password_reset_done.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/registration/password_reset_email.html (modified) (1 diff)
- django/branches/i18n/django/conf/admin_templates/registration/password_reset_form.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/i18n/django/bin/make-messages.py
r729 r763 40 40 lf = os.path.join(basedir, '%s.po' % domain) 41 41 42 tpl_re = re.compile(r'{%\s+i18n\s+.*?%}') 42 tpl_i18n_re = re.compile(r'{%\s+i18n\s+.*?%}') 43 tpl_value_re = re.compile(r'{{\s*_\(.*?\)\s*}}') 44 tpl_tag_re = re.compile(r"""{%.*_\((?:".*?")|(?:'.*?')\).*%}""") 43 45 44 46 for (dirpath, dirnames, filenames) in os.walk("."): … … 49 51 src = open(os.path.join(dirpath, file), "rb").read() 50 52 lst = [] 51 for match in tpl_re.findall(src): 53 for match in tpl_i18n_re.findall(src): 54 lst.append(match) 55 for match in tpl_value_re.findall(src): 56 lst.append(match) 57 for match in tpl_tag_re.findall(src): 52 58 lst.append(match) 53 59 open(os.path.join(dirpath, '%s.py' % file), "wb").write('\n'.join(lst)) django/branches/i18n/django/conf/admin_templates/404.html
r730 r763 1 1 {% extends "base_site" %} 2 2 3 {% block title %}{ % i18n _('Page not found') %}{% endblock %}3 {% block title %}{{ _('Page not found') }}{% endblock %} 4 4 5 5 {% block content %} 6 6 7 <h2>{ % i18n _('Page not found') %}</h2>7 <h2>{{ _('Page not found') }}</h2> 8 8 9 <p>{ % i18n _("We're sorry, but the requested page could not be found.") %}</p>9 <p>{{ _("We're sorry, but the requested page could not be found.") }}</p> 10 10 11 11 {% endblock %} django/branches/i18n/django/conf/admin_templates/500.html
r730 r763 3 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> › Server error</div>{% endblock %} 4 4 5 {% block title %}{ % i18n _('Server error (500)') %}{% endblock %}5 {% block title %}{{ _('Server error (500)') }}{% endblock %} 6 6 7 7 {% block content %} 8 <h1>{ % i18n _('Server Error <em>(500)</em>') %}</h1>9 <p>{ % i18n _("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>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> 10 10 11 11 {% endblock %} django/branches/i18n/django/conf/admin_templates/admin_object_history.html
r92 r763 2 2 3 3 {% block breadcrumbs %} 4 <div class="breadcrumbs"><a href="../../../../"> Home</a> › <a href="../../">{{ module_name }}</a> › <a href="../">{{ object|truncatewords:"18" }}</a> › History</div>4 <div class="breadcrumbs"><a href="../../../../">{{ _('Home') }}</a> › <a href="../../">{{ module_name }}</a> › <a href="../">{{ object|truncatewords:"18" }}</a> › {{ _('History') }}</div> 5 5 {% endblock %} 6 6 … … 15 15 <thead> 16 16 <tr> 17 <th> Date/time</th>18 <th> User</th>19 <th> Action</th>17 <th>{{ _('Date/time') }}</th> 18 <th>{{ _('User') }}</th> 19 <th>{{ _('Action') }}</th> 20 20 </tr> 21 21 </thead> … … 33 33 {% else %} 34 34 35 <p> This object doesn't have a change history. It probably wasn't added via this admin site.</p>35 <p>{{ _('This object doesn't have a change history. It probably wasn't added via this admin site.') }}</p> 36 36 37 37 {% endif %} django/branches/i18n/django/conf/admin_templates/base.html
r730 r763 20 20 </div> 21 21 {% if not user.is_anonymous %} 22 <div id="user-tools">{ % i18n _('Welcome,') %} <strong>{% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}</strong>. <br />{% block userlinks %}<a href="/admin/password_change/">{% i18n _('Change password') %}</a> / <a href="/admin/logout/">{% i18n _('Log out') %}</a>{% endblock %}</div>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 23 {% endif %} 24 24 {% block nav-global %}{% endblock %} … … 26 26 </div> 27 27 <!-- END Header --> 28 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{ % i18n _('Home') %}</a>{% if title %} › {{ title }}{% endif %}</div>{% endblock %}28 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{{ _('Home') }}</a>{% if title %} › {{ title }}{% endif %}</div>{% endblock %} 29 29 {% endif %} 30 30 django/branches/i18n/django/conf/admin_templates/base_site.html
r730 r763 1 1 {% extends "base" %} 2 2 3 {% block title %}{{ title }} | { % i18n _('Django site admin') %}{% endblock %}3 {% block title %}{{ title }} | {{ _('Django site admin') }}{% endblock %} 4 4 5 5 {% block branding %} 6 <h1 id="site-name">{ % i18n _('Django administration') %}</h1>6 <h1 id="site-name">{{ _('Django administration') }}</h1> 7 7 <h2 id="site-url"><a href="http://www.example.com/">example.com</a></h2> 8 8 {% endblock %} django/branches/i18n/django/conf/admin_templates/changelist_generic.html
r730 r763 6 6 7 7 {% if not hide_add_link %} 8 <ul class="object-tools"><li><a href="/{{ admin_url }}/add/" class="addlink">{ % i18n _('Add') %} {{ object_name }}</a></li></ul>8 <ul class="object-tools"><li><a href="/{{ admin_url }}/add/" class="addlink">{{ _('Add') }} {{ object_name }}</a></li></ul> 9 9 {% endif %} 10 10 … … 24 24 <ul class="changelist"> 25 25 {% for obj in changelist %} 26 <li class="{% cycle row1,row2 %}"><a href="/{{ admin_url }}/change/{{ obj.id }}/" title="{ % i18n _('Click to change') %}">{{ obj|striptags|escape }}</a></li>26 <li class="{% cycle row1,row2 %}"><a href="/{{ admin_url }}/change/{{ obj.id }}/" title="{{ _('Click to change') }}">{{ obj|striptags|escape }}</a></li> 27 27 {% endfor %} 28 28 </ul> django/branches/i18n/django/conf/admin_templates/delete_confirmation_generic.html
r730 r763 4 4 5 5 {% if perms_lacking %} 6 <p>{ % i18n _("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>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 7 <ul> 8 8 {% for obj in perms_lacking %} … … 11 11 </ul> 12 12 {% else %} 13 <p>{ % i18n _('Are you sure you want to delete the %(object_name)s "%(object)s"? All of the following related items will be deleted:') %}</p>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 14 <ul>{{ deleted_objects|unordered_list }}</ul> 15 15 <form action="" method="post"> 16 16 <input type="hidden" name="post" value="yes" /> 17 <input type="submit" value="{ % i18n _("Yes, I'm sure") %}" />17 <input type="submit" value="{{ _("Yes, I'm sure") }}" /> 18 18 </form> 19 19 {% endif %} django/branches/i18n/django/conf/admin_templates/index.html
r730 r763 24 24 25 25 {% if model.perms.add %} 26 <td class="x50"><a href="{{ model.admin_url }}add/" class="addlink">{ % i18n _('Add') %}</a></td>26 <td class="x50"><a href="{{ model.admin_url }}add/" class="addlink">{{ _('Add') }}</a></td> 27 27 {% else %} 28 28 <td class="x50"> </td> … … 30 30 31 31 {% if model.perms.change %} 32 <td class="x75"><a href="{{ model.admin_url }}" class="changelink">{ % i18n _('Change') %}</a></td>32 <td class="x75"><a href="{{ model.admin_url }}" class="changelink">{{ _('Change') }}</a></td> 33 33 {% else %} 34 34 <td class="x75"> </td> … … 40 40 {% endfor %} 41 41 {% else %} 42 <p>{ % i18n _("You don't have permission to edit anything.") %}</p>42 <p>{{ _("You don't have permission to edit anything.") }}</p> 43 43 {% endif %} 44 44 </div> … … 48 48 <div id="content-related"> 49 49 <div class="module" id="recent-actions-module"> 50 <h2>{ % i18n _('Recent Actions') %}</h2>51 <h3>{ % i18n _('My Actions') %}</h3>50 <h2>{{ _('Recent Actions') }}</h2> 51 <h3>{{ _('My Actions') }}</h3> 52 52 {% load auth.log %} 53 53 {% get_admin_log 10 as admin_log for_user user %} 54 54 {% if not admin_log %} 55 <p>{ % i18n _('None available') %}</p>55 <p>{{ _('None available') }}</p> 56 56 {% else %} 57 57 <ul class="actionlist"> django/branches/i18n/django/conf/admin_templates/login.html
r730 r763 12 12 13 13 <p class="aligned"> 14 <label for="id_username">{ % i18n _('Username:') %}</label> <input type="text" name="username" id="id_username" />14 <label for="id_username">{{ _('Username:') }}</label> <input type="text" name="username" id="id_username" /> 15 15 </p> 16 16 <p class="aligned"> 17 <label for="id_password">{ % i18n _('Password:') %}</label> <input type="password" name="password" id="id_password" />17 <label for="id_password">{{ _('Password:') }}</label> <input type="password" name="password" id="id_password" /> 18 18 <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">{ % i18n _('Have you <a href="/password_reset/">forgotten your password</a>?') %}</span>{% endcomment %}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 20 </p> 21 21 22 22 <div class="aligned "> 23 <label> </label><input type="submit" value="{ % i18n _('Log in') %}" />23 <label> </label><input type="submit" value="{{ _('Log in') }}" /> 24 24 </div> 25 25 </form> django/branches/i18n/django/conf/admin_templates/registration/logged_out.html
r730 r763 1 1 {% extends "base_site" %} 2 2 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ % i18n _('Home') %}</a></div>{% endblock %}3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{{ _('Home') }}</a></div>{% endblock %} 4 4 5 5 {% block content %} 6 6 7 <p>{ % i18n _("Thanks for spending some quality time with the Web site today.") %}</p>7 <p>{{ _("Thanks for spending some quality time with the Web site today.") }}</p> 8 8 9 <p><a href="../">{ % i18n _('Log in again') %}</a></p>9 <p><a href="../">{{ _('Log in again') }}</a></p> 10 10 11 11 {% endblock %} django/branches/i18n/django/conf/admin_templates/registration/password_change_done.html
r730 r763 1 1 {% extends "base_site" %} 2 2 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ % i18n _('Home') %}</a> › {% i18n _('Password change') %}</div>{% endblock %}3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{{ _('Home') }}</a> › {{ _('Password change') }}</div>{% endblock %} 4 4 5 {% block title %}{ % i18n _('Password change successful') %}{% endblock %}5 {% block title %}{{ _('Password change successful') }}{% endblock %} 6 6 7 7 {% block content %} 8 8 9 <h1>{ % i18n _('Password change successful') %}</h1>9 <h1>{{ _('Password change successful') }}</h1> 10 10 11 <p>{ % i18n _('Your password was changed.') %}</p>11 <p>{{ _('Your password was changed.') }}</p> 12 12 13 13 {% endblock %} django/branches/i18n/django/conf/admin_templates/registration/password_change_form.html
r733 r763 1 1 {% extends "base_site" %} 2 2 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ % i18n _('Home') %}</a> › {% i18n _('Password change') %}</div>{% endblock %}3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{{ _('Home') }}</a> › {{ _('Password change') }}</div>{% endblock %} 4 4 5 {% block title %}{ % i18n _('Password change') %}{% endblock %}5 {% block title %}{{ _('Password change') }}{% endblock %} 6 6 7 7 {% block content %} 8 8 9 <h1>{ % i18n _('Password change') %}</h1>9 <h1>{{ _('Password change') }}</h1> 10 10 11 <p>{ % i18n _("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>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 12 13 13 <form action="" method="post"> 14 14 15 15 {% if form.old_password.errors %}{{ form.old_password.html_error_list }}{% endif %} 16 <p class="aligned wide"><label for="id_old_password">{ % i18n _('Old password:') %}</label>{{ form.old_password }}</p>16 <p class="aligned wide"><label for="id_old_password">{{ _('Old password:') }}</label>{{ form.old_password }}</p> 17 17 {% if form.new_password1.errors %}{{ form.new_password1.html_error_list }}{% endif %} 18 <p class="aligned wide"><label for="id_new_password1">{ % i18n _('New password:') %}</label>{{ form.new_password1 }}</p>18 <p class="aligned wide"><label for="id_new_password1">{{ _('New password:') }}</label>{{ form.new_password1 }}</p> 19 19 {% if form.new_password2.errors %}{{ form.new_password2.html_error_list }}{% endif %} 20 <p class="aligned wide"><label for="id_new_password2">{ % i18n _('Confirm password:') %}</label>{{ form.new_password2 }}</p>20 <p class="aligned wide"><label for="id_new_password2">{{ _('Confirm password:') }}</label>{{ form.new_password2 }}</p> 21 21 22 <p><input type="submit" value="{ % i18n _('Change my password') %}" /></p>22 <p><input type="submit" value="{{ _('Change my password') }}" /></p> 23 23 </form> 24 24 django/branches/i18n/django/conf/admin_templates/registration/password_reset_done.html
r730 r763 1 1 {% extends "base_site" %} 2 2 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ % i18n _('Home') %}</a> › {% i18n _('Password reset') %}</div>{% endblock %}3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{{ _('Home') }}</a> › {{ _('Password reset') }}</div>{% endblock %} 4 4 5 {% block title %}{ % i18n _('Password reset successful') %}{% endblock %}5 {% block title %}{{ _('Password reset successful') }}{% endblock %} 6 6 7 7 {% block content %} 8 8 9 <h1>{ % i18n _('Password reset successful') %}</h1>9 <h1>{{ _('Password reset successful') }}</h1> 10 10 11 <p>{ % i18n _("We've e-mailed a new password to the e-mail address you submitted. You should be receiving it shortly.") %}</p>11 <p>{{ _("We've e-mailed a new password to the e-mail address you submitted. You should be receiving it shortly.") }}</p> 12 12 13 13 {% endblock %} django/branches/i18n/django/conf/admin_templates/registration/password_reset_email.html
r730 r763 1 { % i18n _("You're receiving this e-mail because you requested a password reset") %}2 { % i18n _("for your user account at %(site_name)s") %}.1 {{ _("You're receiving this e-mail because you requested a password reset") }} 2 {{ _("for your user account at %(site_name)s") }}. 3 3 4 { % i18n _("Your new password is: %(new_password)s") %}4 {{ _("Your new password is: %(new_password)s") }} 5 5 6 { % i18n _("Feel free to change this password by going to this page:") %}6 {{ _("Feel free to change this password by going to this page:") }} 7 7 8 8 http://{{ domain }}/password_change/ 9 9 10 { % i18n _("Your username, in case you've forgotten:") %} {{ user.username }}10 {{ _("Your username, in case you've forgotten:") }} {{ user.username }} 11 11 12 { % i18n _("Thanks for using our site!") %}12 {{ _("Thanks for using our site!") }} 13 13 14 { % i18n _("The %(site_name)s team") %}14 {{ _("The %(site_name)s team") }} django/branches/i18n/django/conf/admin_templates/registration/password_reset_form.html
r730 r763 1 1 {% extends "base_site" %} 2 2 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{ % i18n _('Home') %}</a> › {% i18n _('Password reset') %}</div>{% endblock %}3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{{ _('Home') }}</a> › {{ _('Password reset') }}</div>{% endblock %} 4 4 5 {% block title %}{ % i18n _("Password reset") %}{% endblock %}5 {% block title %}{{ _("Password reset") }}{% endblock %} 6 6 7 7 {% block content %} 8 8 9 <h1>{ % i18n _("Password reset") %}</h1>9 <h1>{{ _("Password reset") }}</h1> 10 10 11 <p>{ % i18n _("Forgotten your password? Enter your e-mail address below, and we'll reset your password and e-mail the new one to you.") %}</p>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 12 13 13 <form action="" method="post"> 14 14 {% if form.email.errors %}{{ form.email.html_error_list }}{% endif %} 15 <p><label for="id_email">{ % i18n _('E-mail address:') %}</label> {{ form.email }} <input type="submit" value="{% i18n _('Reset my password') %}" /></p>15 <p><label for="id_email">{{ _('E-mail address:') }}</label> {{ form.email }} <input type="submit" value="{{ _('Reset my password') }}" /></p> 16 16 </form> 17 17
