8000 [Translation] Xliff name attribute as the key. · Issue #37055 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Translation] Xliff name attribute as the key. #37055
Closed
@idybil

Description

@idybil

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.

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

      0