Skip to content

Commit 50e39b8

Browse files
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 validator
2 parents 8460cc9 + f4514d7 commit 50e39b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Resources/translations/validators.pl.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@
404404
</trans-unit>
405405
<trans-unit id="104">
406406
<source>The filename is too long. It should have {{ filename_max_length }} character or less.|The filename is too long. It should have {{ filename_max_length }} characters or less.</source>
407-
<target>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.</target>
407+
<target>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 }} znaki lub mniej.|Nazwa pliku jest za długa. Powinna mieć {{ filename_max_length }} znaków lub mniej.</target>
408408
</trans-unit>
409409
<trans-unit id="105">
410410
<source>The password strength is too low. Please use a stronger password.</source>

0 commit comments

Comments
 (0)