Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90a7e86

Browse files
committed
[Validator] Add missing translation for new validators from #790
1 parent 4902626 commit 90a7e86

File tree

10 files changed

+73
-9
lines changed

10 files changed

+73
-9
lines changed

src/Symfony/Component/Validator/Constraints/EqualTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
*/
1919
class EqualTo extends AbstractComparison
2020
{
21-
public $message = 'This value should be equal to {{ compared_value }}';
21+
public $message = 'This value should be equal to {{ compared_value }}.';
2222
}

src/Symfony/Component/Validator/Constraints/GreaterThan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
*/
1919
class GreaterThan extends AbstractComparison
2020
{
21-
public $message = 'This value should be greater than {{ compared_value }}';
21+
public $message = 'This value should be greater than {{ compared_value }}.';
2222
}

src/Symfony/Component/Validator/Constraints/GreaterThanOrEqual.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
*/
1919
class GreaterThanOrEqual extends AbstractComparison
2020
{
21-
public $message = 'This value should be greater than or equal to {{ compared_value }}';
21+
public $message = 'This value should be greater than or equal to {{ compared_value }}.';
2222
}

src/Symfony/Component/Validator/Constraints/IdenticalTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
*/
1919
class IdenticalTo extends AbstractComparison
2020
{
21-
public $message = 'This value should be identical to {{ compared_value_type }} {{ compared_value }}';
21+
public $message = 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.';
2222
}

src/Symfony/Component/Validator/Constraints/LessThan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
*/
1919
class LessThan extends AbstractComparison
2020
{
21-
public $message = 'This value should be less than {{ compared_value }}';
21+
public $message = 'This value should be less than {{ compared_value }}.';
2222
}

src/Symfony/Component/Validator/Constraints/LessThanOrEqual.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
*/
1919
class LessThanOrEqual extends AbstractComparison
2020
{
21-
public $message = 'This value should be less than or equal to {{ compared_value }}';
21+
public $message = 'This value should be less than or equal to {{ compared_value }}.';
2222
}

src/Symfony/Component/Validator/Constraints/NotEqualTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
*/
1919
class NotEqualTo extends AbstractComparison
2020
{
21-
public $message = 'This value should not be equal to {{ compared_value }}';
21+
public $message = 'This value should not be equal to {{ compared_value }}.';
2222
}

src/Symfony/Component/Validator/Constraints/NotIdenticalTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
*/
1919
class NotIdenticalTo extends AbstractComparison
2020
{
21-
public $message = 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}';
21+
public $message = 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.';
2222
}

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,38 @@
246246
<source>This value is not a valid currency.</source>
247247
<target>This value is not a valid currency.</target>
248248
</trans-unit>
249+
<trans-unit id="65">
250+
<source>This value should be equal to {{ compared_value }}.</source>
251+
<target>This value should be equal to {{ compared_value }}.</target>
252+
</trans-unit>
253+
<trans-unit id="66">
254+
<source>This value should be greater than {{ compared_value }}.</source>
255+
<target>This value should be greater than {{ compared_value }}.</target>
256+
</trans-unit>
257+
<trans-unit id="67">
258+
<source>This value should be greater than or equal to {{ compared_value }}.</source>
259+
<target>This value should be greater than or equal to {{ compared_value }}.</target>
260+
</trans-unit>
261+
<trans-unit id="68">
262+
<source>This value should be identical to {{ compared_value_type }} {{ compared_value }}.</source>
263+
<target>This value should be identical to {{ compared_value_type }} {{ compared_value }}.</target>
264+
</trans-unit>
265+
<trans-unit id="69">
266+
<source>This value should be less than {{ compared_value }}.</source>
267+
<target>This value should be less than {{ compared_value }}.</target>
268+
</trans-unit>
269+
<trans-unit id="70">
270+
<source>This value should be less than or equal to {{ compared_value }}.</source>
271+
<target>This value should be less than or equal to {{ compared_value }}.</target>
272+
</trans-unit>
273+
<trans-unit id="71">
274+
<source>This value should not be equal to {{ compared_value }}.</source>
275+
<target>This value should not be equal to {{ compared_value }}.</target>
276+
</trans-unit>
277+
<trans-unit id="72">
278+
<source>This value should not be identical to {{ compared_value_type }} {{ compared_value }}.</source>
279+
<target>This value should not be identical to {{ compared_value_type }} {{ compared_value }}.</target>
280+
</trans-unit>
249281
</body>
250282
</file>
251283
</xliff>

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,39 @@
245245
<trans-unit id="64">
246246
<source>This value is not a valid currency.</source>
247247
<target>Ta wartość nie jest prawidłową walutą.</target>
248-
</trans-unit>
248+
</trans-unit>
249+
<trans-unit id="65">
250+
<source>This value should be equal to {{ compared_value }}.</source>
251+
<target>Ta wartość powinna być równa {{ compared_value }}.</target>
252+
</trans-unit>
253+
<trans-unit id="66">
254+
<source>This value should be greater than {{ compared_value }}.</source>
255+
<target>Ta wartość powinna być większa niż {{ compared_value }}.</target>
256+
</trans-unit>
257+
<trans-unit id="67">
258+
<source>This value should be greater than or equal to {{ compared_value }}.</source>
259+
<target>Ta wartość powinna być większa bądź równa {{ compared_value }}.</target>
260+
</trans-unit>
261+
<trans-unit id="68">
262+
<source>This value should be identical to {{ compared_value_type }} {{ compared_value }}.</source>
263+
<target>Ta wartość powinna być identycznego typu {{ compared_value_type }} oraz wartości {{ compared_value }}.</target>
264+
</trans-unit>
265+
<trans-unit id="69">
266+
<source>This value should be less than {{ compared_value }}.</source>
267+
<target>Ta wartość powinna być mniejsza niż {{ compared_value }}.</target>
268+
</trans-unit>
269+
<trans-unit id="70">
270+
<source>This value should be less than or equal to {{ compared_value }}.</source>
271+
<target>Ta wartość powinna być mniejsza bądź równa {{ compared_value }}.</target>
272+
</trans-unit>
273+
<trans-unit id="71">
274+
<source>This value should not be equal to {{ compared_value }}.</source>
275+
<target>Ta wartość nie powinna być równa {{ compared_value }}.</target>
276+
</trans-unit>
277+
<trans-unit id="72">
278+
<source>This value should not be identical to {{ compared_value_type }} {{ compared_value }}.</source>
279+
<target>Ta wartość nie powinna być identycznego typu {{ compared_value_type }} oraz wartości {{ compared_value }}.</target>
280+
</trans-unit>
249281
</body>
250282
</file>
251283
</xliff>

0 commit comments

Comments
 (0)