Skip to content

Sf4 Form type title attribute not extracted #394

Closed
@pdias

Description

@pdias

In Symfony 4, form type i have this:

$builder->add(
            'icon',
            IconChoiceType::class,
            [
                'required' => true,
                'label' => 'menu.icon',
                'help' => 'menu.icon.help',
                'label_attr' => ['class' => 'ellipsis'],
                'attr' => [
                    'class' => 'form-control selectpicker show-tick',
                    'title' => 'menu.select.icon.title',
                    'data-size' => '5',
                    'data-width' => '100%',
                    'data-live-search' => 'true',
                    'data-style' => 'btn btn-light btn-square'
                ],
            ]
        );

When i extract translation, the title ('title' => 'menu.select.icon.title',) is not extracted.

Thanks,
Paulo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions