Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tasiobg opened this issue Sep 28, 2017 · 2 comments
Closed

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

Tasiobg opened this issue Sep 28, 2017 · 2 comments

Comments

@Tasiobg
Copy link

Tasiobg commented Sep 28, 2017

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 "|".

@carsonbot
Copy link

Hey, thanks for your report!
There has not been a lot of activity here for a while. Is this bug still relevant? Have you managed to find a workaround?

@xabbuh
Copy link
Member

xabbuh commented Dec 20, 2020

I guess we can close here as the transChoice() method has been removed from the Translation component.

@xabbuh xabbuh closed this as completed Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants