Skip to content

Commit 50af64a

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: (22 commits) update translation fr prevent incompatible Translator implementations to be used [Validator] added missing Serbian Latin translation [Validator] added missing Czech translations [Validator] added missing Portuguese translation [Validator] added missing Luxembourgish translation [Validator] added missing Greek translations [Validator] added missing Azerbaijani translations [Validator] added missing Slovenian translations [Validator] added missing Bulgarian translations [Validator] added missing Turkish translations [Validator] added missing Russian translations [Validator] added missing Danish translations [Notifier] Fix FrameworkExtension factory classes (MessageBird & TurboSms) [Validator] added missing Macedonian translation [Validator] added missing Slovak translations [Form][Security][Validator] Normalize translation files [Console] CS fix Add missing Indonesian translation [Validator] added missing Ukrainian translation ...
2 parents 95997cd + b125357 commit 50af64a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1142
-233
lines changed

Constraints/Collection.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ class Collection extends Composite
4444

4545
public function __construct(mixed $fields = null, array $groups = null, mixed $payload = null, bool $allowExtraFields = null, bool $allowMissingFields = null, string $extraFieldsMessage = null, string $missingFieldsMessage = null)
4646
{
47-
if (\is_array($fields)
48-
&& (($firstField = reset($fields)) instanceof Constraint
49-
|| ($firstField[0] ?? null) instanceof Constraint
50-
)) {
47+
if (\is_array($fields) && ([] === $fields || ($firstField = reset($fields)) instanceof Constraint || ($firstField[0] ?? null) instanceof Constraint)) {
5148
$fields = ['fields' => $fields];
5249
}
5350

Resources/translations/validators.af.xlf

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="file.ext">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="af" datatype="plaintext" original="file.ext">
44
<body>
55
<trans-unit id="1">
66
<source>This value should be false.</source>
@@ -358,6 +358,10 @@
358358
<source>This value is not a valid timezone.</source>
359359
<target>Hierdie waarde is nie 'n geldige tydsone nie.</target>
360360
</trans-unit>
361+
<trans-unit id="93">
362+
<source>This password has been leaked in a data breach, it must not be used. Please use another password.</source>
363+
<target state="needs-translation">This password has been leaked in a data breach, it must not be used. Please use another password.</target>
364+
</trans-unit>
361365
<trans-unit id="94">
362366
<source>This value should be between {{ min }} and {{ max }}.</source>
363367
<target>Hierdie waarde moet tussen {{ min }} en {{ max }} wees.</target>
@@ -398,6 +402,42 @@
398402
<source>The value of the netmask should be between {{ min }} and {{ max }}.</source>
399403
<target>Die waarde van die netmasker moet tussen {{ min }} en {{ max }} wees.</target>
400404
</trans-unit>
405+
<trans-unit id="104">
406+
<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 state="needs-translation">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.</target>
408+
</trans-unit>
409+
<trans-unit id="105">
410+
<source>The password strength is too low. Please use a stronger password.</source>
411+
<target state="needs-translation">The password strength is too low. Please use a stronger password.</target>
412+
</trans-unit>
413+
<trans-unit id="106">
414+
<source>This value contains characters that are not allowed by the current restriction-level.</source>
415+
<target state="needs-translation">This value contains characters that are not allowed by the current restriction-level.</target>
416+
</trans-unit>
417+
<trans-unit id="107">
418+
<source>Using invisible characters is not allowed.</source>
419+
<target state="needs-translation">Using invisible characters is not allowed.</target>
420+
</trans-unit>
421+
<trans-unit id="108">
422+
<source>Mixing numbers from different scripts is not allowed.</source>
423+
<target state="needs-translation">Mixing numbers from different scripts is not allowed.</target>
424+
</trans-unit>
425+
<trans-unit id="109">
426+
<source>Using hidden overlay characters is not allowed.</source>
427+
<target state="needs-translation">Using hidden overlay characters is not allowed.</target>
428+
</trans-unit>
429+
<trans-unit id="110">
430+
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431+
<target state="needs-translation">The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</target>
432+
</trans-unit>
433+
<trans-unit id="111">
434+
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435+
<target state="needs-translation">The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</target>
436+
</trans-unit>
437+
<trans-unit id="112">
438+
<source>This is not a valid MAC address.</source>
439+
<target state="needs-translation">This is not a valid MAC address.</target>
440+
</trans-unit>
401441
</body>
402442
</file>
403443
</xliff>

Resources/translations/validators.ar.xlf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="file.ext">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="ar" datatype="plaintext" original="file.ext">
44
<body>
55
<trans-unit id="1">
66
<source>This value should be false.</source>
@@ -430,6 +430,14 @@
430430
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431431
<target>امتداد الملف غير صحيح ({{ extension }}). الامتدادات المسموح بها هي {{ extensions }}.</target>
432432
</trans-unit>
433+
<trans-unit id="111">
434+
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435+
<target state="needs-translation">The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</target>
436+
</trans-unit>
437+
<trans-unit id="112">
438+
<source>This is not a valid MAC address.</source>
439+
<target state="needs-translation">This is not a valid MAC address.</target>
440+
</trans-unit>
433441
</body>
434442
</file>
435443
</xliff>

Resources/translations/validators.az.xlf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="file.ext">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="az" datatype="plaintext" original="file.ext">
44
<body>
55
<trans-unit id="1">
66
<source>This value should be false.</source>
@@ -430,6 +430,14 @@
430430
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431431
<target>Faylın uzantısı yanlışdır ({{ extension }}). İcazə verilən uzantılar {{ extensions }}.</target>
432432
</trans-unit>
433+
<trans-unit id="111">
434+
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435+
<target>Təsbit edilən simvol şifrləməsi yanlışdır. ({{ detected }}). İcazə verilən şifrləmələr bunlardır: {{ encodings }}.</target>
436+
</trans-unit>
437+
<trans-unit id="112">
438+
<source>This is not a valid MAC address.</source>
439+
<target>Bu MAC ünvanı yanlışdır.</target>
440+
</trans-unit>
433441
</body>
434442
</file>
435443
</xliff>

Resources/translations/validators.be.xlf

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="file.ext">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="be" datatype="plaintext" original="file.ext">
44
<body>
55
<trans-unit id="1">
66
<source>This value should be false.</source>
@@ -426,6 +426,18 @@
426426
<source>Using hidden overlay characters is not allowed.</source>
427427
<target>Выкарыстанне схаваных накладзеных сімвалаў не дазваляецца.</target>
428428
</trans-unit>
429+
<trans-unit id="110">
430+
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431+
<target state="needs-translation">The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</target>
432+
</trans-unit>
433+
<trans-unit id="111">
434+
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435+
<target state="needs-translation">The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</target>
436+
</trans-unit>
437+
<trans-unit id="112">
438+
<source>This is not a valid MAC address.</source>
439+
<target state="needs-translation">This is not a valid MAC address.</target>
440+
</trans-unit>
429441
</body>
430442
</file>
431443
</xliff>

Resources/translations/validators.bg.xlf

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="file.ext">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="bg" datatype="plaintext" original="file.ext">
44
<body>
55
<trans-unit id="1">
66
<source>This value should be false.</source>
@@ -426,6 +426,18 @@
426426
<source>Using hidden overlay characters is not allowed.</source>
427427
<target>Използването на скрити насложени символи не е позволено.</target>
428428
</trans-unit>
429+
<trans-unit id="110">
430+
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431+
<target>Разширението на файла е невалидно ({{ extension }}). Разрешените разширения са {{ extensions }}.</target>
432+
</trans-unit>
433+
<trans-unit id="111">
434+
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435+
<target>Откритото кодиране на знаците е невалидно ({{ detected }}). Разрешените кодирания са {{ encodings }}.</target>
436+
</trans-unit>
437+
<trans-unit id="112">
438+
<source>This is not a valid MAC address.</source>
439+
<target>Невалиден MAC адрес.</target>
440+
</trans-unit>
429441
</body>
430442
</file>
431443
</xliff>

Resources/translations/validators.bs.xlf

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="file.ext">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="bs" datatype="plaintext" original="file.ext">
44
<body>
55
<trans-unit id="1">
66
<source>This value should be false.</source>
@@ -426,6 +426,18 @@
426426
<source>Using hidden overlay characters is not allowed.</source>
427427
<target>Upotreba skrivenih preklapajućih znakova nije dozvoljena.</target>
428428
</trans-unit>
429+
<trans-unit id="110">
430+
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431+
<target state="needs-translation">The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</target>
432+
</trans-unit>
433+
<trans-unit id="111">
434+
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435+
<target state="needs-translation">The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</target>
436+
</trans-unit>
437+
<trans-unit id="112">
438+
<source>This is not a valid MAC address.</source>
439+
<target state="needs-translation">This is not a valid MAC address.</target>
440+
</trans-unit>
429441
</body>
430442
</file>
431443
</xliff>

Resources/translations/validators.ca.xlf

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="file.ext">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="ca" datatype="plaintext" original="file.ext">
44
<body>
55
<trans-unit id="1">
66
<source>This value should be false.</source>
@@ -302,7 +302,7 @@
302302
<source>An empty file is not allowed.</source>
303303
<target>No està permès un fixter buit.</target>
304304
</trans-unit>
305-
<trans-unit id="79">
305+
<trans-unit id="79">
306306
<source>The host could not be resolved.</source>
307307
<target>No s'ha pogut resoldre l'amfitrió.</target>
308308
</trans-unit>
@@ -426,6 +426,18 @@
426426
<source>Using hidden overlay characters is not allowed.</source>
427427
<target>No es permet l'ús de caràcters superposats ocults.</target>
428428
</trans-unit>
429+
<trans-unit id="110">
430+
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431+
<target state="needs-translation">The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</target>
432+
</trans-unit>
433+
<trans-unit id="111">
434+
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435+
<target state="needs-translation">The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</target>
436+
</trans-unit>
437+
<trans-unit id="112">
438+
<source>This is not a valid MAC address.</source>
439+
<target state="needs-translation">This is not a valid MAC address.</target>
440+
</trans-unit>
429441
</body>
430442
</file>
431443
</xliff>

Resources/translations/validators.cs.xlf

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="file.ext">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file source-language="en" target-language="cs" datatype="plaintext" original="file.ext">
44
<body>
55
<trans-unit id="1">
66
<source>This value should be false.</source>
@@ -414,18 +414,30 @@
414414
<source>This value contains characters that are not allowed by the current restriction-level.</source>
415415
<target>Tato hodnota obsahuje znaky, které nejsou povoleny aktuální úrovní omezení.</target>
416416
</trans-unit>
417-
<trans-unit id="107">
418-
<source>Using invisible characters is not allowed.</source>
419-
<target>Používání neviditelných znaků není povoleno.</target>
420-
</trans-unit>
421-
<trans-unit id="108">
422-
<source>Mixing numbers from different scripts is not allowed.</source>
423-
<target>Kombinování čísel z různých písem není povoleno.</target>
424-
</trans-unit>
425-
<trans-unit id="109">
426-
<source>Using hidden overlay characters is not allowed.</source>
427-
<target>Použití skrytých překrývajících znaků není povoleno.</target>
428-
</trans-unit>
417+
<trans-unit id="107">
418+
<source>Using invisible characters is not allowed.</source>
419+
<target>Používání neviditelných znaků není povoleno.</target>
420+
</trans-unit>
421+
<trans-unit id="108">
422+
<source>Mixing numbers from different scripts is not allowed.</source>
423+
<target>Kombinování čísel z různých písem není povoleno.</target>
424+
</trans-unit>
425+
<trans-unit id="109">
426+
<source>Using hidden overlay characters is not allowed.</source>
427+
<target>Použití skrytých překrývajících znaků není povoleno.</target>
428+
</trans-unit>
429+
<trans-unit id="110">
430+
<source>The extension of the file is invalid ({{ extension }}). Allowed extensions are {{ extensions }}.</source>
431+
<target>Přípona souboru je neplatná ({{ extension }}). Povolené přípony jsou {{ extensions }}.</target>
432+
</trans-unit>
433+
<trans-unit id="111">
434+
<source>The detected character encoding is invalid ({{ detected }}). Allowed encodings are {{ encodings }}.</source>
435+
<target>Zjištěné kódování znaků je neplatné ({{ detected }}). Povolená kódování jsou {{ encodings }}.</target>
436+
</trans-unit>
437+
<trans-unit id="112">
438+
<source>This is not a valid MAC address.</source>
439+
<target>Tohle není platná MAC adresa.</target>
440+
</trans-unit>
429441
</body>
430442
</file>
431443
</xliff>

0 commit comments

Comments
 (0)