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

Translation extractor displays error when processing Tag/Style mappers

    XMLWordPrintable

Details

    Description

      When regenerating AdminUI translation messages by calling in the eZ Platform meta-repository:

      php bin/console translation:extract -c admin
      

      the following error can be observed:

      Can only extract the translation id from a scalar string, but got "PhpParser\Node\Expr\FuncCall". Please refactor your code to make it extractable, or add the doc comment /** @Ignore */ to this code element (in ./vendor/ezsystems/ezplatform-admin-ui/src/lib/UI/Config/Mapper/FieldType/RichText/CustomTag/CommonAttributeMapper.php on line 48).
      Can only extract the translation id from a scalar string, but got "PhpParser\Node\Expr\FuncCall". Please refactor your code to make it extractable, or add the doc comment /** @Ignore */ to this code element (in ./vendor/ezsystems/ezplatform-admin-ui/src/lib/UI/Config/Mapper/FieldType/RichText/CustomTag.php on line 81).
      Can only extract the translation id from a scalar string, but got "PhpParser\Node\Expr\FuncCall". Please refactor your code to make it extractable, or add the doc comment /** @Ignore */ to this code element (in ./vendor/ezsystems/ezplatform-admin-ui/src/lib/UI/Config/Mapper/FieldType/RichText/CustomTag.php on line 86).
      

      On unreleased (at the time of writing this) version 2.3 the same bug occurs for Custom Styles also.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrew.longosz@ibexa.co Andrew Longosz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: