Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31612

Translations for choice labels are ignored

    XMLWordPrintable

    Details

      Description

      Steps to reproduce:

      1. Create a custom tag with choices attribute:
        custom_tags:
            factbox:
                template: '@ezdesign/custom_tag/factbox.html.twig'
                icon: '/bundles/factbox/img/icons.svg'
                is_inline: false
                attributes:
                    options:
                        type: choice
                        choices:
                            - option1
                            - option2
                        default_value: option1
                        required: true
        
      2. Create translations for choice labels:
        ezrichtext.custom_tags.factbox.attributes.options.choices.option1.label: 'Option 1'
        ezrichtext.custom_tags.factbox.attributes.options.choices.option2.label: 'Option 2'
        
      3. Open OE and insert the custom tag

      Expected result:

      Choice label translations will be shown

      Actual result:

      Choice values are shown instead of translated labels

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            L0rdJ Serhey Dolgushev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: