summaryrefslogtreecommitdiff
path: root/django
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
parent70a0de37d132e5f1514fb939875f69649f103124 (diff)
Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mail
Diffstat (limited to 'django')
-rw-r--r--django/conf/global_settings.py2
-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
-rw-r--r--django/core/validators.py2
-rw-r--r--django/db/models/fields/__init__.py2
-rw-r--r--django/forms/fields.py2
11 files changed, 14 insertions, 14 deletions
diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
index 4d5dc49ee0..708e9c9f70 100644
--- a/django/conf/global_settings.py
+++ b/django/conf/global_settings.py
@@ -144,7 +144,7 @@ DEFAULT_CHARSET = 'utf-8'
# Encoding of files read from disk (template and initial SQL files).
FILE_CHARSET = 'utf-8'
-# E-mail address that error messages come from.
+# Email address that error messages come from.
SERVER_EMAIL = 'root@localhost'
# Whether to send broken-link emails.
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
diff --git a/django/core/validators.py b/django/core/validators.py
index cf12f8c9fc..c7bda682ac 100644
--- a/django/core/validators.py
+++ b/django/core/validators.py
@@ -101,7 +101,7 @@ email_re = re.compile(
r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*"'
r')@((?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?$)' # domain
r'|\[(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}\]$', re.IGNORECASE) # literal form, ipv4 address (SMTP 4.1.3)
-validate_email = EmailValidator(email_re, _('Enter a valid e-mail address.'), 'invalid')
+validate_email = EmailValidator(email_re, _('Enter a valid email address.'), 'invalid')
slug_re = re.compile(r'^[-a-zA-Z0-9_]+$')
validate_slug = RegexValidator(slug_re, _("Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens."), 'invalid')
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index 58ae3413f3..94abfd784c 100644
--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -905,7 +905,7 @@ class DecimalField(Field):
class EmailField(CharField):
default_validators = [validators.validate_email]
- description = _("E-mail address")
+ description = _("Email address")
def __init__(self, *args, **kwargs):
# max_length should be overridden to 254 characters to be fully
diff --git a/django/forms/fields.py b/django/forms/fields.py
index 0075325288..4438812a37 100644
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -461,7 +461,7 @@ class RegexField(CharField):
class EmailField(CharField):
default_error_messages = {
- 'invalid': _('Enter a valid e-mail address.'),
+ 'invalid': _('Enter a valid email address.'),
}
default_validators = [validators.validate_email]