Description
Symfony version(s) affected: 5.1.0
Description
In the translation xliff dumper (translation/Dumper/XliffFileDumper.php), When a string length is greater than 80, the dumper (translation/Dumper/XliffFileDumper.php) set the name attribute of the unit using md5.
But since the xliff loader is now using the name attribute as the key (#35373), the translation is missing when generating the template.
How to reproduce
-
In a Twig template or using the translator->trans(), add a string to be translated with a length greater than 80 characters.
-
Dump the translation (I'm using the php-translation/symfony-bundle)
-
See the result in a browser: the translated string is always displayed in the default locale, plus, in the profiler, it is displayed as "missing" translation.
Possible Solution
I know I can use translation keys, but prefer to stick with content strings.