Skip to content

[Translation] [BUG?] TransChoice invalide plural translation #27401

Closed
@noniagriconomie

Description

@noniagriconomie

Symfony version(s) affected: 2.7+

Description
TransChoice invalide plural translation
see https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Translation/MessageSelector.php#L81

How to reproduce
Try to transchoice a failed plural translation (with missing portion)

Possible Solution
Replace exception by critical/error log?

Additional context
The context is that we may have non tech users that translate those translations (eg: web based GUI, software, etc) and they can make some human errors.
Then we extract those data to inject them into our application
We do have some tools to check the translation format etc, but this one is particular
and it should (must?) be non critical for production IMO

What do you think?
Does this ex have been coded on purpose?
Does symfony dev implements an ex listener to catch this very specific error to handle it?

May thanks

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