﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19132	bug in use of mark_safe and i18n _	flagzeta@…	nobody	"I am using a form which defines this field:


{{{
terms = forms.BooleanField(
        error_messages={'required': _('You must accept the terms and conditions')},
        label="""",
        help_text=_(mark_safe(""I understand and accept the <a href='/terms_and_conditions' target='_blank'>terms of use</a> and <a href='/privacy' target='_blank'>privacy policy</a> of this site.""))
    )
}}}


unfortunately running ""./manage.py makemessages --all"" does not seem to pickup the help_text named argument.

---

If i change this to:


{{{
terms = forms.BooleanField(
        error_messages={'required': _('You must accept the terms and conditions')},
        label="""",
        help_text=mark_safe(_(""I understand and accept the <a href='/terms_and_conditions' target='_blank'>terms of use</a> and <a href='/privacy' target='_blank'>privacy policy</a> of this site.""))
    )
}}}


the message in the html is left untranslated."	Cleanup/optimization	closed	Documentation	1.4	Normal	fixed			Accepted	0	0	0	0	0	0
