Skip to content

[Form] Set translation_domain on choices #7611

@patie

Description

@patie

I thinking about option for set translation domain on each element

maybe something like that with translation_id@domain or translation_id:domain

       $builder->add('language', 'choice', array(
            'label'                            => 'language_of_report@user',
            'choices'                          => array(
                \Acme\BackBundle\Entity\User::LANGUAGE_EN  => 'english@main',
                \Acme\BackBundle\Entity\User::LANGUAGE_DE  => 'german@main',
            )
        ));

i know its will not often used, but imho not BC breakes and sometimes its necessary..

What do you think ?

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

      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