Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Translation] --no-fill option prefixes translations with \0NoFill\0 for intl-icu YAML translations #60710

Open
@finwe

Description

@finwe

Symfony version(s) affected

7.2.6

Description

Updated YAML translations using the --no-fill option are generated with \0NoFill\0 prefix.

Given how the --no-fill option is described in the documentation, I'd expect the translations to be empty, or this to be mentioned in the docs.

How to reproduce

Have a custom validator message in an entity

#[Assert\NotBlank(message: 'Description is mandatory')]
public string $description;

Generate translation with

bin/console translation:extract --format yaml --force --no-fill ro_RO

validators+intl-icu.ro_RO.yaml is generated with line

'Description is mandatory': "\0NoFill\0Description is mandatory"

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions