Skip to content

Commit 57e3efa

Browse files
committed
minor symfony#61903 [Validator] Add missing Polish plural form for word count validator (czachor)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator] Add missing Polish plural form for word count validator | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | none | License | MIT Fixed the Polish translation for word count validation message by adding all three required plural forms (instead of two). Problem: Locale set to `pl`. If the validation `Symfony\Component\Validator\Constraints\WordCount` was triggered for the example configuration: ``` new WordCount(max: 50) ``` the exception SymfonyComponentTranslationExceptionInvalidArgumentException is thrown if the string exceeds 50 words. The exact message is: > Symfony\Component\Translation\Exception\InvalidArgumentException: "Unable to choose a translation for "Ta wartość jest zbyt długa. Powinna zawierać jedno słowo.|Ta wartość jest zbyt długa. Powinna zawierać {{ max }} słów lub mniej." with locale "pl" for value "50". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %count% apples")." at TranslatorTrait.php line 117 The cause is a missing third plural form: the original translation contained only two forms. Commits ------- 302ec69 [Validator] Fix Polish translation for word count validation message
2 parents 047768f + 302ec69 commit 57e3efa

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
@@ -448,7 +448,7 @@
448448
</trans-unit>
449449
<trans-unit id="115">
450450
<source>This value is too long. It should contain one word.|This value is too long. It should contain {{ max }} words or less.</source>
451-
<target>Ta wartość jest zbyt długa. Powinna zawierać jedno słowo.|Ta wartość jest zbyt długa. Powinna zawierać {{ max }} słów lub mniej.</target>
451+
<target>Ta wartość jest zbyt długa. Powinna zawierać jedno słowo.|Ta wartość jest zbyt długa. Powinna zawierać {{ max }} słowa lub mniej.|Ta wartość jest zbyt długa. Powinna zawierać {{ max }} słów lub mniej.</target>
452452
</trans-unit>
453453
<trans-unit id="116">
454454
<source>This value does not represent a valid week in the ISO 8601 format.</source>

0 commit comments

Comments
 (0)