Skip to content

Translations: no "fuzzy" support for the gettext (.po) reader #18161

@nud

Description

@nud

The traditional gettext tools usually try to find similar strings when updating translations.

This results in some strings having a translation but being marked as "fuzzy":

#. / Template: ../manager/templates/user/profile/vop.html.twig:8
#, fuzzy
msgid "Please put your username or extension."
msgstr ""
"Veuillez vérifier qu'il n'existe pas d'autre utilisateur avec le même "
"identifiant ou la même extension."

The expected result when a string is marked as fuzzy is that it should not be used by the translation system. Using symfony, though, the translations are used, which can result in "funny" messages being displayed in the interface despite being often completely out of context.

As a consequence, I think fuzzy support should be added to the gettext support in symfony, and messages tagged with #, fuzzy should be discarded.

Beware that sometimes there might be other tags like this and in any order:

#, php-format, fuzzy

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