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

Missing entries using the translation extractor command for custom attributes and classes

    XMLWordPrintable

Details

    Description

      When executing the translation extractor command to create a translation file for configured custom attributes and classes. The created file contains only custom classes keys.

      Steps to reproduce:

      Configuration:

      system:
          admin_group:
              fieldtypes:
                  ezrichtext:
                      attributes:
                          paragraph:
                              border:
                                  type: boolean
                                  default_value: false
                              border_radius:
                                  type: number
                                  default_value: 0
                      classes:
                          paragraph:
                              choices: ['none', 'box']
                              default_value: 'none'
                              #required: false
                              multiple: false
      

      Command:

      php ./bin/console translation:extract --enable-extractor=ez_online_editor_attributes --dir=./app/Resources/views --output-dir=./app/Resources/translations/ --output-format=yaml
      

       

      Output file online_editor.en.yaml :

      ezrichtext.classes.class.label: Class

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramzi.arfaoui-obsolete@ez.no Ramzi Arfaoui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: