You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Resources/translations/validators.pl.xlf
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -448,7 +448,7 @@
448
448
</trans-unit>
449
449
<trans-unitid="115">
450
450
<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>
452
452
</trans-unit>
453
453
<trans-unitid="116">
454
454
<source>This value does not represent a valid week in the ISO 8601 format.</source>
0 commit comments