Appears like there's a typo in components/select.inc:

When changing

$element['#translatable'][] = 'other';

to

$element['#translatable'][] = 'other_text';

in line 403, label becomes translatable.

Further change necessary for applying the translated text.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thomas.wardin created an issue. See original summary.

Liam Morland’s picture

Version: 7.x-4.19 » 7.x-4.x-dev

Thanks. Please write up the needed changes as a patch.

fjgarlin’s picture

Status: Active » Needs review
FileSize
751 bytes

Patch attached

Liam Morland’s picture

The line changed by the patch was added in #2442241: Translatable property for 'Other' option text is missing.

thomas.wardin’s picture

Needs the "companion change" in order to work: https://www.drupal.org/project/webform_translation/issues/3075467

Liam Morland’s picture

I don't understand what is happening here. When I add a select component with the "other" option enabled, there is an "other" form control created. The text "other_text" does not appear in the HTML source.

#2442241: Translatable property for 'Other' option text is missing was about making the "other" label translatable. Presumably, that fix worked for the person who wrote that fix. Does it not work anymore?

Liam Morland’s picture

Status: Needs review » Postponed (maintainer needs more info)
Liam Morland’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

If this is still a problem, please provide steps to reproduce and an updated patch.