Skip to content

Improve handling of the '@' Character in Translations #2214

@wnmzzzz

Description

@wnmzzzz

Clear and concise description of the problem

The '@' Character in translations is a special Character since v9. However, '@' is also a common literal that appears in things like Emails. Including the literal '@' in a translation requires cubbersome and unintuitive literal interpolation.

On top of that, translations are sometimes not written by the developers themselves, but by third party translators that do not have a grounded technical background and might not understand why they cannot simply write what they want it to say.

You can tell how often people stumble upon this by taking a look at the discussion in #531 or #118

Suggested solution

It should be possible to freely chose the special character to use for linking, so that a developer can pick a symbol or series of symbols that's unlikely to appear in their messages. This could be done via a configuration option, with '@' remaining the default to maintain backwards compatibility.

Alternative

It should also be possible to completely disable this linking feature for simple use-cases that do not make use of the @ functionality.

Additional context

While there was a lot of discussion in #531 about this, that issue is a closed Bug report, while this is a feature request. As such, I hope this does not count as a duplicate issue.

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions