Commit 50e39b8
committed
minor symfony#61083 [Validator] Add missing Polish plural form for filename length validator (czachor)
This PR was merged into the 6.4 branch.
Discussion
----------
[Validator] Add missing Polish plural form for filename length validator
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | None
| License | MIT
Fixed the Polish translation for filename length validation message by adding all three required plural forms (instead of two).
Problem:
Locale set to `pl`. If the validation `Symfony\Component\Validator\Constraints\File` was triggered for the example configuration:
```
new File([
'filenameMaxLength' => 100,
])
```
the exception `SymfonyComponentTranslationExceptionInvalidArgumentException` is thrown if the file name exceeds 100 characters. The exact message is:
> Unable to choose a translation for "Nazwa pliku jest za długa. Powinna mieć {{ filename_max_length }} znak lub mniej.|Nazwa pliku jest za długa. Powinna mieć {{ filename_max_length }} znaków lub mniej." with locale "pl" for value "100". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %count% apples").
The cause is a missing third plural form: the original translation contained only two forms.
Commits
-------
f4514d7 [Validator] Add missing Polish plural form for filename length validatorFile tree
1 file changed
+1
-1
lines changed- src/Symfony/Component/Validator/Resources/translations
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
0 commit comments