Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Missing File constraint translations #52995

Copy link
Copy link
Closed
@KamilPesek

Description

@KamilPesek
Issue body actions

Symfony version(s) affected

6.4

Description

There is at least one translation missing for czech (cs locale) for /vendor/symfony/validator/Constraints/File.php

The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.

I think it will be missing also in another languages and I think this won't be the only key which is missing. Not sure how these are generated but would be good to check this overall.

How to reproduce

Submit invalid form with field with File constraint. In this case submit e.g. jpg file.

$builder
            ->add('files', FileType::class, [
                        'multiple' => true,
                        'constraints' => [
                    new All([
                        'constraints' => [
                            new File(['extensions' => ['pdf', ],]),
                        ],
                    ]),
                ],
            ]);

Possible Solution

No response

Additional Context

No response

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.