Details
-
Bug
-
Resolution: Fixed
-
High
-
2.3.0-rc1, 2.2.2
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
Issue Links
- links to