Closed jssuzanne closed 7 months ago
On https://github.com/wtforms/wtforms/blob/master/src/wtforms/fields/choices.py#L59, the options are instanciate with a label. Or in https://github.com/wtforms/wtforms/blob/master/src/wtforms/fields/core.py#L123, when the label is not None it is use directly.
On https://github.com/wtforms/wtforms/blob/master/src/wtforms/fields/choices.py#L59, the label should be wrap by the method gettext (https://github.com/wtforms/wtforms/blob/master/src/wtforms/fields/core.py#L194)
Sorry bad, issue, the translation is not the pb of WTForms but mine. I close this issue.
Actual Behavior
On https://github.com/wtforms/wtforms/blob/master/src/wtforms/fields/choices.py#L59, the options are instanciate with a label. Or in https://github.com/wtforms/wtforms/blob/master/src/wtforms/fields/core.py#L123, when the label is not None it is use directly.
Expected Behavior
On https://github.com/wtforms/wtforms/blob/master/src/wtforms/fields/choices.py#L59, the label should be wrap by the method gettext (https://github.com/wtforms/wtforms/blob/master/src/wtforms/fields/core.py#L194)
Environment