Created
January 12, 2014 09:54
-
-
Save mjtamlyn/8382789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/django/forms/forms.py b/django/forms/forms.py | |
| index bcc0d6d..46192ad 100644 | |
| --- a/django/forms/forms.py | |
| +++ b/django/forms/forms.py | |
| @@ -15,7 +15,7 @@ from django.forms.widgets import Media, MediaDefiningClass, TextInput, Textarea | |
| from django.utils.html import conditional_escape, format_html | |
| from django.utils.encoding import smart_text, force_text, python_2_unicode_compatible | |
| from django.utils.safestring import mark_safe | |
| -from django.utils.translation import ugettext as _ | |
| +from django.utils.translation import ugettext as _, ugettext_lazy | |
| from django.utils import six | |
| @@ -119,7 +119,7 @@ class BaseForm(object): | |
| self.initial = initial or {} | |
| self.error_class = error_class | |
| # Translators: This is the default suffix added to form field labels | |
| - self.label_suffix = label_suffix if label_suffix is not None else _(':') | |
| + self.label_suffix = label_suffix if label_suffix is not None else ugettext_lazy(':') | |
| self.empty_permitted = empty_permitted | |
| self._errors = None # Stores the errors after clean() has been called. | |
| self._changed_data = None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment