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

Skip to content

[Translation][transChoice] issues with imploding and escaping plurals #24359

Closed
@Tasiobg

Description

@Tasiobg
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version v3.2.0-BETA1

Changes introduced here return "|" when the plurals from a *.po file are empty strings, this happen because the PoFileLoader.php is imploding the plurals with "|" and will generate something like "||" if the translation has empty plurals strings.
The commit mentioned above understand double pipe as a escape character and act wrongly returning "|".

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