Problem/Motivation

The custom labels for the On / Off states are not translatable at the moment.

Steps to reproduce

Switch to a different language, other than English - the labels are not translated.

Proposed resolution

Parse the label through the core translate function.

Remaining tasks

Provide a patch.

User interface changes

None

API changes

None

Data model changes

None

Comments

JordiK created an issue. See original summary.

larisse’s picture

Status: Active » Needs review
StatusFileSize
new702 bytes

Hello.

Here's a patch for this.

jordik’s picture

StatusFileSize
new1003 bytes

Thanks for the patch, but this will only translate the default values, when the form is shown for the first time.
If you type in other values, they will not be translated.

Here is the correct patch.

  • JordiK committed 64c9579 on 2.0.x
    Issue #3269929 by JordiK, larisse: Make custom On Off labels...
jordik’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.