summaryrefslogtreecommitdiff
path: root/django/contrib
diff options
context:
space:
mode:
authorAdrien Lemaire <lemaire.adrien@gmail.com>2012-09-26 14:14:51 +0200
committerClaude Paroz <claude@2xlibre.net>2012-09-26 14:14:51 +0200
commit2c8267bf3db608b99c04ae903c424b60cafaaf93 (patch)
tree4010acc82f31fa252b48a5fcb896a88695823b22 /django/contrib
parent70a0de37d132e5f1514fb939875f69649f103124 (diff)
Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mail
Diffstat (limited to 'django/contrib')
-rw-r--r--django/contrib/admin/templates/admin/500.html2
-rw-r--r--django/contrib/admin/templates/registration/password_reset_done.html2
-rw-r--r--django/contrib/admin/templates/registration/password_reset_email.html2
-rw-r--r--django/contrib/admin/templates/registration/password_reset_form.html4
-rw-r--r--django/contrib/auth/forms.py6
-rw-r--r--django/contrib/auth/tests/forms.py2
-rw-r--r--django/contrib/auth/tests/templates/registration/password_reset_done.html2
7 files changed, 10 insertions, 10 deletions
diff --git a/django/contrib/admin/templates/admin/500.html b/django/contrib/admin/templates/admin/500.html
index 9a3b636346..4842faa656 100644
--- a/django/contrib/admin/templates/admin/500.html
+++ b/django/contrib/admin/templates/admin/500.html
@@ -12,6 +12,6 @@
{% block content %}
<h1>{% trans 'Server Error <em>(500)</em>' %}</h1>
-<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>
+<p>{% trans "There's been an error. It's been reported to the site administrators via email and should be fixed shortly. Thanks for your patience." %}</p>
{% endblock %}
diff --git a/django/contrib/admin/templates/registration/password_reset_done.html b/django/contrib/admin/templates/registration/password_reset_done.html
index 3c9796e63c..7584c8393a 100644
--- a/django/contrib/admin/templates/registration/password_reset_done.html
+++ b/django/contrib/admin/templates/registration/password_reset_done.html
@@ -14,6 +14,6 @@
<h1>{% trans 'Password reset successful' %}</h1>
-<p>{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}</p>
+<p>{% trans "We've emailed you instructions for setting your password to the email address you submitted. You should be receiving it shortly." %}</p>
{% endblock %}
diff --git a/django/contrib/admin/templates/registration/password_reset_email.html b/django/contrib/admin/templates/registration/password_reset_email.html
index 4f002fe5bb..0eef4a7f9d 100644
--- a/django/contrib/admin/templates/registration/password_reset_email.html
+++ b/django/contrib/admin/templates/registration/password_reset_email.html
@@ -1,5 +1,5 @@
{% load i18n %}{% autoescape off %}
-{% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
+{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
{% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %}
diff --git a/django/contrib/admin/templates/registration/password_reset_form.html b/django/contrib/admin/templates/registration/password_reset_form.html
index ca9ff115bc..c9998a1a3b 100644
--- a/django/contrib/admin/templates/registration/password_reset_form.html
+++ b/django/contrib/admin/templates/registration/password_reset_form.html
@@ -14,11 +14,11 @@
<h1>{% trans "Password reset" %}</h1>
-<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p>
+<p>{% trans "Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one." %}</p>
<form action="" method="post">{% csrf_token %}
{{ form.email.errors }}
-<p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p>
+<p><label for="id_email">{% trans 'Email address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p>
</form>
{% endblock %}
diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py
index a430f042e9..c114c18afe 100644
--- a/django/contrib/auth/forms.py
+++ b/django/contrib/auth/forms.py
@@ -193,12 +193,12 @@ class AuthenticationForm(forms.Form):
class PasswordResetForm(forms.Form):
error_messages = {
- 'unknown': _("That e-mail address doesn't have an associated "
+ 'unknown': _("That email address doesn't have an associated "
"user account. Are you sure you've registered?"),
- 'unusable': _("The user account associated with this e-mail "
+ 'unusable': _("The user account associated with this email "
"address cannot reset the password."),
}
- email = forms.EmailField(label=_("E-mail"), max_length=75)
+ email = forms.EmailField(label=_("Email"), max_length=75)
def clean_email(self):
"""
diff --git a/django/contrib/auth/tests/forms.py b/django/contrib/auth/tests/forms.py
index 7c6410da0f..6be6249711 100644
--- a/django/contrib/auth/tests/forms.py
+++ b/django/contrib/auth/tests/forms.py
@@ -344,4 +344,4 @@ class PasswordResetFormTest(TestCase):
form = PasswordResetForm(data)
self.assertFalse(form.is_valid())
self.assertEqual(form["email"].errors,
- [_("The user account associated with this e-mail address cannot reset the password.")])
+ [_("The user account associated with this email address cannot reset the password.")])
diff --git a/django/contrib/auth/tests/templates/registration/password_reset_done.html b/django/contrib/auth/tests/templates/registration/password_reset_done.html
index d56b10f0d5..c3d1d0c7b0 100644
--- a/django/contrib/auth/tests/templates/registration/password_reset_done.html
+++ b/django/contrib/auth/tests/templates/registration/password_reset_done.html
@@ -1 +1 @@
-E-mail sent \ No newline at end of file
+Email sent \ No newline at end of file