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