diff --git a/django/conf/locale/en/LC_MESSAGES/django.po b/django/conf/locale/en/LC_MESSAGES/django.po
index 371f0af..f8069f0 100644
|
a
|
b
|
msgid ""
|
| 4 | 4 | msgstr "" |
| 5 | 5 | "Project-Id-Version: Django\n" |
| 6 | 6 | "Report-Msgid-Bugs-To: \n" |
| 7 | | "POT-Creation-Date: 2013-05-25 14:27+0200\n" |
| | 7 | "POT-Creation-Date: 2013-06-11 18:44+0200\n" |
| 8 | 8 | "PO-Revision-Date: 2010-05-13 15:35+0200\n" |
| 9 | 9 | "Last-Translator: Django team\n" |
| 10 | 10 | "Language-Team: English <en@li.org>\n" |
| … |
… |
msgstr ""
|
| 699 | 699 | msgid "Enter a list of values." |
| 700 | 700 | msgstr "" |
| 701 | 701 | |
| 702 | | #: forms/forms.py:158 |
| | 702 | #. Translators: This is the default suffix added to form field labels |
| | 703 | #: forms/forms.py:90 |
| | 704 | msgid ":" |
| | 705 | msgstr "" |
| | 706 | |
| | 707 | #: forms/forms.py:159 |
| 703 | 708 | #, python-format |
| 704 | 709 | msgid "(Hidden field %(name)s) %(error)s" |
| 705 | 710 | msgstr "" |
| 706 | 711 | |
| | 712 | #. Translators: If found as last label character, these punctuation |
| | 713 | #. characters will prevent the default label_suffix to be appended to the label |
| | 714 | #: forms/forms.py:525 |
| | 715 | msgid ":?.!" |
| | 716 | msgstr "" |
| | 717 | |
| 707 | 718 | #: forms/formsets.py:310 |
| 708 | 719 | #, python-format |
| 709 | 720 | msgid "Please submit %d or fewer forms." |
diff --git a/django/forms/forms.py b/django/forms/forms.py
index e6a11f2..0bc45b7 100644
|
a
|
b
|
class BaseForm(object):
|
| 77 | 77 | # information. Any improvements to the form API should be made to *this* |
| 78 | 78 | # class, not to the Form class. |
| 79 | 79 | def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None, |
| 80 | | initial=None, error_class=ErrorList, label_suffix=':', |
| | 80 | initial=None, error_class=ErrorList, label_suffix=None, |
| 81 | 81 | empty_permitted=False): |
| 82 | 82 | self.is_bound = data is not None or files is not None |
| 83 | 83 | self.data = data or {} |
| … |
… |
class BaseForm(object):
|
| 86 | 86 | self.prefix = prefix |
| 87 | 87 | self.initial = initial or {} |
| 88 | 88 | self.error_class = error_class |
| 89 | | self.label_suffix = label_suffix |
| | 89 | # Translators: This is the default suffix added to form field labels |
| | 90 | self.label_suffix = label_suffix if label_suffix is not None else _(':') |
| 90 | 91 | self.empty_permitted = empty_permitted |
| 91 | 92 | self._errors = None # Stores the errors after clean() has been called. |
| 92 | 93 | self._changed_data = None |
| … |
… |
class BoundField(object):
|
| 519 | 520 | contents = contents or self.label |
| 520 | 521 | # Only add the suffix if the label does not end in punctuation. |
| 521 | 522 | if self.form.label_suffix: |
| 522 | | if contents[-1] not in ':?.!': |
| | 523 | # Translators: If found as last label character, these punctuation |
| | 524 | # characters will prevent the default label_suffix to be appended to the label |
| | 525 | if contents[-1] not in _(':?.!'): |
| 523 | 526 | contents = format_html('{0}{1}', contents, self.form.label_suffix) |
| 524 | 527 | widget = self.field.widget |
| 525 | 528 | id_ = widget.attrs.get('id') or self.auto_id |
diff --git a/django/forms/models.py b/django/forms/models.py
index 65434a6..71b2235 100644
|
a
|
b
|
class ModelFormMetaclass(type):
|
| 270 | 270 | |
| 271 | 271 | class BaseModelForm(BaseForm): |
| 272 | 272 | def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None, |
| 273 | | initial=None, error_class=ErrorList, label_suffix=':', |
| | 273 | initial=None, error_class=ErrorList, label_suffix=None, |
| 274 | 274 | empty_permitted=False, instance=None): |
| 275 | 275 | opts = self._meta |
| 276 | 276 | if opts.model is None: |