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

Translation extractor displays error when processing Tag/Style mappers

    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.

        Issue Links

          Activity

          Show
          Andrzej Longosz added a comment - PR: https://github.com/ezsystems/ezplatform-admin-ui/pull/649
          Show
          Katarzyna Zawada added a comment - Merged: https://github.com/ezsystems/ezplatform-admin-ui/commit/fd8f7ba8b2a07c08a91a4a598d2746642cbadd21

            People

            • Assignee:
              Unassigned
              Reporter:
              Andrzej Longosz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: