Skip to content

Commit db23f36

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [Validator] Fix return types Add translation for Belarusian fix parsing calls of methods named "method" deal with indented heredoc/nowdoc tokens Adding templates for Belarusian
2 parents 0992359 + 08c3add commit db23f36

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

Constraint.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* Constraint instances are immutable and serializable.
2727
*
28-
* @property array $groups The groups that the constraint belongs to
28+
* @property string[] $groups The groups that the constraint belongs to
2929
*
3030
* @author Bernhard Schussek <[email protected]>
3131
*/
@@ -263,7 +263,7 @@ public function getDefaultOption()
263263
*
264264
* Override this method if you want to define required options.
265265
*
266-
* @return array
266+
* @return string[]
267267
*
268268
* @see __construct()
269269
*/
@@ -293,7 +293,7 @@ public function validatedBy()
293293
* This method should return one or more of the constants
294294
* Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.
295295
*
296-
* @return string|array One or more constant values
296+
* @return string|string[] One or more constant values
297297
*/
298298
public function getTargets()
299299
{

Resources/translations/validators.be.xlf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,30 @@
362362
<source>This password has been leaked in a data breach, it must not be used. Please use another password.</source>
363363
<target>Гэты пароль быў выкрадзены ў выніку ўзлому дадзеных, таму яго нельга выкарыстоўваць. Калі ласка, выкарыстоўвайце іншы пароль.</target>
364364
</trans-unit>
365+
<trans-unit id="94">
366+
<source>This value should be between {{ min }} and {{ max }}.</source>
367+
<target>Значэнне павінна быць паміж {{min}} і {{max}}.</target>
368+
</trans-unit>
369+
<trans-unit id="95">
370+
<source>This value is not a valid hostname.</source>
371+
<target>Значэнне не з'яўляецца карэктным імем хаста.</target>
372+
</trans-unit>
373+
<trans-unit id="96">
374+
<source>The number of elements in this collection should be a multiple of {{ compared_value }}.</source>
375+
<target>Колькасць элементаў у гэтай калекцыі павінна быць кратным {{compared_value}}.</target>
376+
</trans-unit>
377+
<trans-unit id="97">
378+
<source>This value should satisfy at least one of the following constraints:</source>
379+
<target>Значэнне павінна задавальняць як мінімум аднаму з наступных абмежаванняў:</target>
380+
</trans-unit>
381+
<trans-unit id="98">
382+
<source>Each element of this collection should satisfy its own set of constraints.</source>
383+
<target>Кожны элемент гэтай калекцыі павінен задавальняць свайму ўласнаму набору абмежаванняў.</target>
384+
</trans-unit>
385+
<trans-unit id="99">
386+
<source>This value is not a valid International Securities Identification Number (ISIN).</source>
387+
<target>Значэнне не з'яўляецца карэктным міжнародным ідэнтыфікацыйным нумарам каштоўных папер (ISIN).</target>
388+
</trans-unit>
365389
</body>
366390
</file>
367391
</xliff>

0 commit comments

Comments
 (0)