Skip to content

[DX][3.0] Fix inconsistent use of translation parameters #11948

@wouterj

Description

@wouterj

The translator document uses the %...% convention for translation parameters:

I have %number% apples.

However, the Validation component uses the {{ ... }} (twig-like) syntax for translation parameters:

This value should at least be {{ minValue }} characters long.

This has confused some people already, especially when creating their own constraints:

  • Should they follow the translation or validation conventions?
  • The documentation follows the translation conventions, that seems inconsistent

I would suggest to have one standard for translation parameters and use that everywhere in the core framework.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)TranslationValidator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy