From ff92a6eb5b87c65ca47568e0ca37df949e17feb2 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 22 Aug 2013 09:14:06 +0200 Subject: [1.6.x] Moved translator comment just above the target string Backport of 8cd874298 from master. --- django/forms/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/forms/forms.py') diff --git a/django/forms/forms.py b/django/forms/forms.py index 10ae1248da..0dfcdebbf0 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -521,9 +521,9 @@ class BoundField(object): """ contents = contents or self.label # Only add the suffix if the label does not end in punctuation. + label_suffix = label_suffix if label_suffix is not None else self.form.label_suffix # Translators: If found as last label character, these punctuation # characters will prevent the default label_suffix to be appended to the label - label_suffix = label_suffix if label_suffix is not None else self.form.label_suffix if label_suffix and contents and contents[-1] not in _(':?.!'): contents = format_html('{0}{1}', contents, label_suffix) widget = self.field.widget -- cgit v1.3