From 868d649d5c9e24f58c0ace5a55d28cc9731e2f56 Mon Sep 17 00:00:00 2001 From: Christian Raue Date: Tue, 8 May 2012 21:06:26 +0200 Subject: [PATCH 1/3] separate numeric values from suffixes in File constraint's error message `$maxSizeMessage` --- .../Resources/translations/validators.ca.xlf | 4 ++-- .../Resources/translations/validators.cs.xlf | 4 ++-- .../Resources/translations/validators.da.xlf | 4 ++-- .../Resources/translations/validators.de.xlf | 4 ++-- .../Resources/translations/validators.en.xlf | 4 ++-- .../Resources/translations/validators.es.xlf | 4 ++-- .../Resources/translations/validators.et.xlf | 4 ++-- .../Resources/translations/validators.eu.xlf | 4 ++-- .../Resources/translations/validators.fa.xlf | 4 ++-- .../Resources/translations/validators.fi.xlf | 4 ++-- .../Resources/translations/validators.fr.xlf | 4 ++-- .../Resources/translations/validators.he.xlf | 4 ++-- .../Resources/translations/validators.hr.xlf | 4 ++-- .../Resources/translations/validators.hu.xlf | 4 ++-- .../Resources/translations/validators.hy.xlf | 4 ++-- .../Resources/translations/validators.id.xlf | 4 ++-- .../Resources/translations/validators.it.xlf | 4 ++-- .../Resources/translations/validators.ja.xlf | 4 ++-- .../Resources/translations/validators.lb.xlf | 4 ++-- .../Resources/translations/validators.lt.xlf | 4 ++-- .../Resources/translations/validators.mn.xlf | 4 ++-- .../Resources/translations/validators.nb.xlf | 4 ++-- .../Resources/translations/validators.nl.xlf | 4 ++-- .../Resources/translations/validators.pl.xlf | 4 ++-- .../Resources/translations/validators.pt.xlf | 4 ++-- .../Resources/translations/validators.pt_BR.xlf | 4 ++-- .../Resources/translations/validators.ro.xlf | 4 ++-- .../Resources/translations/validators.ru.xlf | 4 ++-- .../Resources/translations/validators.sk.xlf | 6 +++--- .../Resources/translations/validators.sl.xlf | 4 ++-- .../Resources/translations/validators.sr_Cyrl.xlf | 4 ++-- .../Resources/translations/validators.sr_Latn.xlf | 4 ++-- .../Resources/translations/validators.sv.xlf | 4 ++-- .../Resources/translations/validators.ua.xlf | 4 ++-- .../Resources/translations/validators.zh_CN.xlf | 4 ++-- src/Symfony/Component/Validator/Constraints/File.php | 2 +- .../Component/Validator/Constraints/FileValidator.php | 11 ++++++----- 37 files changed, 78 insertions(+), 77 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf index f369bd691b..24ed53ab52 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf @@ -63,8 +63,8 @@ No es pot llegir l'arxiu. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - L'arxiu és massa gran ({{ size }}). La grandària màxima permesa és {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + L'arxiu és massa gran ({{ size }} {{ suffix }}). La grandària màxima permesa és {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf index 529624c946..5bd641a80a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf @@ -63,8 +63,8 @@ Soubor je nečitelný. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Soubor je příliš velký ({{ size }}). Maximální povolená velikost souboru je {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Soubor je příliš velký ({{ size }} {{ suffix }}). Maximální povolená velikost souboru je {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf index 537170dc9d..67c2ae3b5e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf @@ -63,8 +63,8 @@ Filen kan ikke læses. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Filen er for stor ({{ size }}). Tilladte maksimale størrelse {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Filen er for stor ({{ size }} {{ suffix }}). Tilladte maksimale størrelse {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf index 45fe6ca2b9..a11399d19d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf @@ -63,8 +63,8 @@ Die Datei ist nicht lesbar. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Die Datei ist zu groß ({{ size }}). Die maximal zulässige Größe beträgt {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Die Datei ist zu groß ({{ size }} {{ suffix }}). Die maximal zulässige Größe beträgt {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf index a59fe1f6f8..7df5eb4bbf 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf @@ -63,8 +63,8 @@ The file is not readable. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf index 284b8b68c7..787b417ac5 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf @@ -63,8 +63,8 @@ No se puede leer el archivo. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - El archivo es demasiado grande ({{ size }}). El tamaño máximo permitido es {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + El archivo es demasiado grande ({{ size }} {{ suffix }}). El tamaño máximo permitido es {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf index 51bb14f341..c68d7964a8 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf @@ -63,8 +63,8 @@ Fail ei ole loetav. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Fail on liiga suur ({{ size }}). Suurim lubatud suurus on {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Fail on liiga suur ({{ size }} {{ suffix }}). Suurim lubatud suurus on {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf index eed41625fd..e80afb2fe0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf @@ -63,8 +63,8 @@ Fitxategia ez dago irakurgai. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Fitxategia handiegia da ({{ size }}). Baimendutako tamainu handiena {{ limit }} da. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Fitxategia handiegia da ({{ size }} {{ suffix }}). Baimendutako tamainu handiena {{ limit }} {{ suffix }} da. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf index 0a2a95fac3..bc9274e8c8 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf @@ -63,8 +63,8 @@ فایل قابلیت خواندن ندارد. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - فایل بیش از اندازه بزرگ است({{ size }}). حداکثر اندازه مجاز برابر {{ limit }} است. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + فایل بیش از اندازه بزرگ است({{ size }} {{ suffix }}). حداکثر اندازه مجاز برابر {{ limit }} {{ suffix }} است. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf index 3fb60c7017..db9128e4aa 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf @@ -63,8 +63,8 @@ Tiedostoa ei voida lukea. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Tiedostonkoko ({{ size }}) on liian iso. Suurin sallittu tiedostonkoko on {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Tiedostonkoko ({{ size }} {{ suffix }}) on liian iso. Suurin sallittu tiedostonkoko on {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf index cf3b24187e..4bd9f80d34 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf @@ -63,8 +63,8 @@ Le fichier n'est pas lisible. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Le fichier est trop volumineux ({{ size }}). Sa taille ne doit pas dépasser {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Le fichier est trop volumineux ({{ size }} {{ suffix }}). Sa taille ne doit pas dépasser {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf index 8ddf513730..5b7239489c 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf @@ -63,8 +63,8 @@ לא ניתן לקרוא את הקובץ. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - הקובץ גדול מדי ({{ size }}). הגודל המרבי המותר הוא {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + הקובץ גדול מדי ({{ size }} {{ suffix }}). הגודל המרבי המותר הוא {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf index 72dec4ba8c..3c2753a8a9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf @@ -63,8 +63,8 @@ Datoteka nije čitljiva. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Datoteka je prevelika ({{ size }}). Najveća dozvoljena veličina je {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Datoteka je prevelika ({{ size }} {{ suffix }}). Najveća dozvoljena veličina je {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf index 9d45d0d96f..741755e431 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf @@ -63,8 +63,8 @@ A fájl nem olvasható. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - A fájl túl nagy ({{ size }}). A legnagyobb megengedett méret {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + A fájl túl nagy ({{ size }} {{ suffix }}). A legnagyobb megengedett méret {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf index 11b8d4e6a9..5e2b96bc69 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf @@ -63,8 +63,8 @@ Ֆայլը անընթեռնելի է. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Ֆայլը չափազանց մեծ է ({{ size }}): Մաքսիմալ թույլատրելի չափսը՝ {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Ֆայլը չափազանց մեծ է ({{ size }} {{ suffix }}): Մաքսիմալ թույլատրելի չափսը՝ {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf index 3887256152..6ec3978657 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf @@ -63,8 +63,8 @@ Berkas tidak bisa dibaca. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Ukuran berkas terlalu besar ({{ size }}). Ukuran maksimum yang diijinkan adalah {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Ukuran berkas terlalu besar ({{ size }} {{ suffix }}). Ukuran maksimum yang diijinkan adalah {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf index c87d88ca01..72ba39c1e7 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf @@ -63,8 +63,8 @@ Il file non è leggibile. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Il file è troppo grande ({{ size }}). La dimensione massima consentita è {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Il file è troppo grande ({{ size }} {{ suffix }}). La dimensione massima consentita è {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf index 0cadb40a5d..e787c7bf3c 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf @@ -63,8 +63,8 @@ ファイルを読み込めません. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - ファイルのサイズが大きすぎます({{ size }})。有効な最大サイズは{{ limit }}です. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + ファイルのサイズが大きすぎます({{ size }} {{ suffix }})。有効な最大サイズは{{ limit }} {{ suffix }}です. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf index ef68463c73..f1d530e158 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf @@ -63,8 +63,8 @@ De Fichier ass net liesbar. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - De Fichier ass ze grouss ({{ size }}). Déi zougeloosse Maximalgréisst bedréit {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + De Fichier ass ze grouss ({{ size }} {{ suffix }}). Déi zougeloosse Maximalgréisst bedréit {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf index 26c7c2e60f..daadf280bb 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf @@ -63,8 +63,8 @@ Negalima nuskaityti bylos. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Byla yra per didelė ({{ size }}). Maksimalus dydis {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Byla yra per didelė ({{ size }} {{ suffix }}). Maksimalus dydis {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf index a0ceee400a..1772fce5a0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf @@ -63,8 +63,8 @@ Файл уншигдахуйц биш байна. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Файл хэтэрхий том байна ({{ size }}). Зөвшөөрөгдөх дээд хэмжээ {{ limit }} байна. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Файл хэтэрхий том байна ({{ size }} {{ suffix }}). Зөвшөөрөгдөх дээд хэмжээ {{ limit }} {{ suffix }} байна. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf index 0304871ab6..9e6962d711 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf @@ -63,8 +63,8 @@ Filen kan ikke leses. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Filen er for stor ({{ size }}). Tilatte maksimale størrelse {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Filen er for stor ({{ size }} {{ suffix }}). Tilatte maksimale størrelse {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf index 0a11fd1ed9..1e07b95ddf 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf @@ -63,8 +63,8 @@ Het bestand is niet leesbaar. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Het bestand is te groot ({{ size }}). Toegestane maximum grootte is {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Het bestand is te groot ({{ size }} {{ suffix }}). Toegestane maximum grootte is {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf index b01cd1b400..7633f0a626 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf @@ -63,8 +63,8 @@ Nie można odczytać pliku. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Plik jest za duży ({{ size }}). Maksymalny dozwolony rozmiar to {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Plik jest za duży ({{ size }} {{ suffix }}). Maksymalny dozwolony rozmiar to {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf index c70ceecbf3..c081feb0d9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf @@ -63,8 +63,8 @@ O arquivo não pôde ser lido. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - O arquivo é muito grande ({{ size }}). O tamanho máximo permitido é de {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + O arquivo é muito grande ({{ size }} {{ suffix }}). O tamanho máximo permitido é de {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf index 089c0a2005..8d61cd9b98 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf @@ -63,8 +63,8 @@ O arquivo não pode ser lido. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - O arquivo é muito grande ({{ size }}). O tamanho máximo permitido é {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + O arquivo é muito grande ({{ size }} {{ suffix }}). O tamanho máximo permitido é {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf index 88953571dd..ece0c3585f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf @@ -63,8 +63,8 @@ Fișierul nu poate fi citit. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Fișierul este prea mare ({{ size }}). Dimensiunea maximă permisă este {{ limit}}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Fișierul este prea mare ({{ size }} {{ suffix }}). Dimensiunea maximă permisă este {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf index 796cdfe875..eefbeadd5c 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf @@ -63,8 +63,8 @@ Файл не может быть прочитан. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Файл слишком большой ({{ size }}). Максимальный допустимый размер {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Файл слишком большой ({{ size }} {{ suffix }}). Максимальный допустимый размер {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf index 2628e492b0..86a54a29c8 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf @@ -63,8 +63,8 @@ Súbor nie je čitateľný. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Súbor je príliš veľký ({{ size }}). Maximálna povolená veľkosť je {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Súbor je príliš veľký ({{ size }} {{ suffix }}). Maximálna povolená veľkosť je {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. @@ -216,4 +216,4 @@ - \ No newline at end of file + diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf index 661790d0b9..3fc8d3aba0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf @@ -63,8 +63,8 @@ Datoteke ni mogoče prebrati. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Datoteka je prevelika ({{ size }}). Največja dovoljena velikost je {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Datoteka je prevelika ({{ size }} {{ suffix }}). Največja dovoljena velikost je {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf index c8f3be2445..4f048b2d13 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf @@ -63,8 +63,8 @@ Датотека није читљива. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Датотека је превелика ({{ size }}). Највећа дозвољена величина је {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Датотека је превелика ({{ size }} {{ suffix }}). Највећа дозвољена величина је {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf index 582718f7aa..825205f228 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf @@ -63,8 +63,8 @@ Datoteka nije čitljiva. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Datoteka je prevelika ({{ size }}). Najveća dozvoljena veličina je {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Datoteka je prevelika ({{ size }} {{ suffix }}). Najveća dozvoljena veličina je {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sv.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sv.xlf index 046d8512af..17f7878b8f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sv.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sv.xlf @@ -63,8 +63,8 @@ Filen är inte läsbar. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Filen är för stor ({{ size }}). Största tillåtna storlek är {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Filen är för stor ({{ size }} {{ suffix }}). Största tillåtna storlek är {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf index e0d776d6f8..f07985f4b9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf @@ -63,8 +63,8 @@ Файл не читається. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - Файл занадто великий ({{ size }}). Дозволений максимальний розмір {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + Файл занадто великий ({{ size }} {{ suffix }}). Дозволений максимальний розмір {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf index 893bcb01da..dfd3d9560b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf @@ -63,8 +63,8 @@ 文件不可读. - The file is too large ({{ size }}). Allowed maximum size is {{ limit }}. - 文件太大 ({{ size }}). 文件大小不可以超过 {{ limit }}. + The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}. + 文件太大 ({{ size }} {{ suffix }}). 文件大小不可以超过 {{ limit }} {{ suffix }}. The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}. diff --git a/src/Symfony/Component/Validator/Constraints/File.php b/src/Symfony/Component/Validator/Constraints/File.php index 06d6e7ed28..cba412721b 100644 --- a/src/Symfony/Component/Validator/Constraints/File.php +++ b/src/Symfony/Component/Validator/Constraints/File.php @@ -24,7 +24,7 @@ class File extends Constraint public $mimeTypes = array(); public $notFoundMessage = 'The file could not be found.'; public $notReadableMessage = 'The file is not readable.'; - public $maxSizeMessage = 'The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.'; + public $maxSizeMessage = 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.'; public $mimeTypesMessage = 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.'; public $uploadIniSizeErrorMessage = 'The file is too large. Allowed maximum size is {{ limit }}.'; diff --git a/src/Symfony/Component/Validator/Constraints/FileValidator.php b/src/Symfony/Component/Validator/Constraints/FileValidator.php index 3a0f311dd0..6c5aeb5192 100644 --- a/src/Symfony/Component/Validator/Constraints/FileValidator.php +++ b/src/Symfony/Component/Validator/Constraints/FileValidator.php @@ -100,23 +100,24 @@ class FileValidator extends ConstraintValidator if (ctype_digit((string) $constraint->maxSize)) { $size = filesize($path); $limit = $constraint->maxSize; - $suffix = ' bytes'; + $suffix = 'bytes'; } elseif (preg_match('/^(\d+)k$/', $constraint->maxSize, $matches)) { $size = round(filesize($path) / 1000, 2); $limit = $matches[1]; - $suffix = ' kB'; + $suffix = 'kB'; } elseif (preg_match('/^(\d+)M$/', $constraint->maxSize, $matches)) { $size = round(filesize($path) / 1000000, 2); $limit = $matches[1]; - $suffix = ' MB'; + $suffix = 'MB'; } else { throw new ConstraintDefinitionException(sprintf('"%s" is not a valid maximum size', $constraint->maxSize)); } if ($size > $limit) { $this->context->addViolation($constraint->maxSizeMessage, array( - '{{ size }}' => $size.$suffix, - '{{ limit }}' => $limit.$suffix, + '{{ size }}' => $size, + '{{ limit }}' => $limit, + '{{ suffix }}' => $suffix, '{{ file }}' => $path, )); From ff122d336c16a2ce0f1aa753b737413417d09641 Mon Sep 17 00:00:00 2001 From: Christian Raue Date: Tue, 8 May 2012 21:19:12 +0200 Subject: [PATCH 2/3] fixed tests --- .../Tests/Constraints/FileValidatorTest.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php index f7388dcebe..e8ec770289 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php @@ -99,8 +99,9 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase $this->context->expects($this->once()) ->method('addViolation') ->with('myMessage', array( - '{{ limit }}' => '10 bytes', - '{{ size }}' => '11 bytes', + '{{ limit }}' => '10', + '{{ size }}' => '11', + '{{ suffix }}' => 'bytes', '{{ file }}' => $this->path, )); @@ -119,8 +120,9 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase $this->context->expects($this->once()) ->method('addViolation') ->with('myMessage', array( - '{{ limit }}' => '1 kB', - '{{ size }}' => '1.4 kB', + '{{ limit }}' => '1', + '{{ size }}' => '1.4', + '{{ suffix }}' => 'kB', '{{ file }}' => $this->path, )); @@ -139,8 +141,9 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase $this->context->expects($this->once()) ->method('addViolation') ->with('myMessage', array( - '{{ limit }}' => '1 MB', - '{{ size }}' => '1.4 MB', + '{{ limit }}' => '1', + '{{ size }}' => '1.4', + '{{ suffix }}' => 'MB', '{{ file }}' => $this->path, )); From 64101aba0aeeabff0180c4f85e695adf8c60715a Mon Sep 17 00:00:00 2001 From: Christian Raue Date: Fri, 11 May 2012 16:14:27 +0200 Subject: [PATCH 3/3] separate numeric value from suffix in File constraint's error message `$uploadIniSizeErrorMessage` --- .../FrameworkBundle/Resources/translations/validators.ca.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.cs.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.da.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.de.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.en.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.es.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.et.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.eu.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.fa.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.fi.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.fr.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.he.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.hr.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.hu.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.hy.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.id.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.it.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.ja.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.lb.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.lt.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.mn.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.nb.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.nl.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.pl.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.pt.xlf | 4 ++-- .../Resources/translations/validators.pt_BR.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.ro.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.ru.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.sk.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.sl.xlf | 4 ++-- .../Resources/translations/validators.sr_Cyrl.xlf | 4 ++-- .../Resources/translations/validators.sr_Latn.xlf | 4 ++-- .../FrameworkBundle/Resources/translations/validators.ua.xlf | 4 ++-- .../Resources/translations/validators.zh_CN.xlf | 4 ++-- src/Symfony/Component/Validator/Constraints/File.php | 2 +- .../Component/Validator/Constraints/FileValidator.php | 5 ++++- .../Validator/Tests/Constraints/FileValidatorTest.php | 5 ++++- 37 files changed, 77 insertions(+), 71 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf index 24ed53ab52..e96ec7a2c5 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf @@ -127,8 +127,8 @@ Els dos valors haurien de ser iguals. - The file is too large. Allowed maximum size is {{ limit }}. - L'arxiu és massa gran. El tamany màxim permés és {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + L'arxiu és massa gran. El tamany màxim permés és {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf index 5bd641a80a..b90e2e005b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf @@ -127,8 +127,8 @@ Tyto dvě hodnoty musí být stejné. - The file is too large. Allowed maximum size is {{ limit }}. - Soubor je příliš velký. Maximální povolená velikost souboru je {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Soubor je příliš velký. Maximální povolená velikost souboru je {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf index 67c2ae3b5e..5e3804b170 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf @@ -127,8 +127,8 @@ De to værdier skal være ens. - The file is too large. Allowed maximum size is {{ limit }}. - Filen er for stor. Den maksimale størrelse er {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Filen er for stor. Den maksimale størrelse er {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf index a11399d19d..bfb6bd8fe8 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf @@ -127,8 +127,8 @@ Die beiden Werte sollten identisch sein. - The file is too large. Allowed maximum size is {{ limit }}. - Die Datei ist zu groß. Die maximal zulässige Größe beträgt {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Die Datei ist zu groß. Die maximal zulässige Größe beträgt {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf index 7df5eb4bbf..2e258525a9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf @@ -127,8 +127,8 @@ The two values should be equal. - The file is too large. Allowed maximum size is {{ limit }}. - The file is too large. Allowed maximum size is {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf index 787b417ac5..60e4200037 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf @@ -127,8 +127,8 @@ Los dos valores deberían ser iguales. - The file is too large. Allowed maximum size is {{ limit }}. - El archivo es demasiado grande. El tamaño máximo permitido es {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + El archivo es demasiado grande. El tamaño máximo permitido es {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf index c68d7964a8..ddfe050997 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf @@ -127,8 +127,8 @@ Väärtused peaksid olema võrdsed. - The file is too large. Allowed maximum size is {{ limit }}. - Fail on liiga suur. Maksimaalne lubatud suurus on {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Fail on liiga suur. Maksimaalne lubatud suurus on {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf index e80afb2fe0..0b25269a45 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf @@ -127,8 +127,8 @@ Bi balioak berdinak izan beharko lirateke. - The file is too large. Allowed maximum size is {{ limit }}. - Fitxategia handiegia da. Baimendutako tamainu handiena {{ limit }} da. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Fitxategia handiegia da. Baimendutako tamainu handiena {{ limit }} {{ suffix }} da. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf index bc9274e8c8..3002c544ec 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf @@ -127,8 +127,8 @@ دو مقدار باید برابر باشند. - The file is too large. Allowed maximum size is {{ limit }}. - فایل بیش از اندازه بزرگ است. حداکثر اندازه مجاز برابر {{ limit }} است. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + فایل بیش از اندازه بزرگ است. حداکثر اندازه مجاز برابر {{ limit }} {{ suffix }} است. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf index db9128e4aa..e512c9c4ce 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf @@ -127,8 +127,8 @@ Kahden annetun arvon tulee olla samat. - The file is too large. Allowed maximum size is {{ limit }}. - Annettu tiedosto on liian iso. Suurin sallittu tiedostokoko on {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Annettu tiedosto on liian iso. Suurin sallittu tiedostokoko on {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf index 4bd9f80d34..5add80d136 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf @@ -127,8 +127,8 @@ Les deux valeurs doivent être identiques. - The file is too large. Allowed maximum size is {{ limit }}. - Le fichier est trop volumineux. Sa taille ne doit pas dépasser {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Le fichier est trop volumineux. Sa taille ne doit pas dépasser {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf index 5b7239489c..1495191ef9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf @@ -127,8 +127,8 @@ שני הערכים צריכים להיות שווים. - The file is too large. Allowed maximum size is {{ limit }}. - הקובץ גדול מדי. הגודל המרבי המותר הוא {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + הקובץ גדול מדי. הגודל המרבי המותר הוא {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf index 3c2753a8a9..67404f484f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf @@ -127,8 +127,8 @@ Obje vrijednosti trebaju biti jednake. - The file is too large. Allowed maximum size is {{ limit }}. - Ova datoteka je prevelika. Najveća dozvoljena veličina je {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Ova datoteka je prevelika. Najveća dozvoljena veličina je {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf index 741755e431..5c161a300f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf @@ -127,8 +127,8 @@ A két értéknek azonosnak kell lennie. - The file is too large. Allowed maximum size is {{ limit }}. - A fájl túl nagy. A megengedett maximális méret: {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + A fájl túl nagy. A megengedett maximális méret: {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf index 5e2b96bc69..60a1e06682 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf @@ -127,8 +127,8 @@ Երկու արժեքները պետք է նույնը լինեն. - The file is too large. Allowed maximum size is {{ limit }}. - Ֆայլը չափազանց մեծ է: Մաքսիմալ թույլատրելի չափսը {{ limit }} է. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Ֆայլը չափազանց մեծ է: Մաքսիմալ թույլատրելի չափսը {{ limit }} {{ suffix }} է. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf index 6ec3978657..c7e3fc1caf 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf @@ -127,8 +127,8 @@ Isi keduanya harus sama. - The file is too large. Allowed maximum size is {{ limit }}. - Ukuran berkas terlalu besar. Ukuran maksimum yang diijinkan adalah {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Ukuran berkas terlalu besar. Ukuran maksimum yang diijinkan adalah {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf index 72ba39c1e7..5b939dda34 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf @@ -127,8 +127,8 @@ I due valori dovrebbero essere uguali. - The file is too large. Allowed maximum size is {{ limit }}. - Il file è troppo grande. La dimensione massima è {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Il file è troppo grande. La dimensione massima è {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf index e787c7bf3c..7b4d6e5fbd 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf @@ -131,8 +131,8 @@ 値は有効な国名ではありません. - The file is too large. Allowed maximum size is {{ limit }}. - ファイルのサイズが大きすぎます。有効な最大サイズは{{ limit }}です. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + ファイルのサイズが大きすぎます。有効な最大サイズは{{ limit }} {{ suffix }}です. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf index f1d530e158..4efecc69e8 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf @@ -127,8 +127,8 @@ Béid Wäerter sollten identesch sinn. - The file is too large. Allowed maximum size is {{ limit }}. - De fichier ass ze grouss. Déi maximal Gréisst dierf {{ limit }} net depasséieren. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + De fichier ass ze grouss. Déi maximal Gréisst dierf {{ limit }} {{ suffix }} net depasséieren. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf index daadf280bb..d9ea20a41b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf @@ -127,8 +127,8 @@ Abi reikšmės turi būti identiškos. - The file is too large. Allowed maximum size is {{ limit }}. - Byla yra per didelė. Maksimalus dydis yra {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Byla yra per didelė. Maksimalus dydis yra {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf index 1772fce5a0..fb544998c2 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf @@ -127,8 +127,8 @@ Хоёр утгууд ижил байх ёстой. - The file is too large. Allowed maximum size is {{ limit }}. - Файл хэтэрхий том байна. Зөвшөөрөгдөх дээд хэмжээ нь {{ limit }} байна. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Файл хэтэрхий том байна. Зөвшөөрөгдөх дээд хэмжээ нь {{ limit }} {{ suffix }} байна. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf index 9e6962d711..7f9e406a7d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf @@ -127,8 +127,8 @@ De to verdier skal være ens. - The file is too large. Allowed maximum size is {{ limit }}. - Filen er for stor. Den maksimale størrelse er {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Filen er for stor. Den maksimale størrelse er {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf index 1e07b95ddf..b1b414bc7a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf @@ -127,8 +127,8 @@ De twee waarden moeten gelijk zijn. - The file is too large. Allowed maximum size is {{ limit }}. - Het bestand is te groot. Toegestane maximum grootte is {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Het bestand is te groot. Toegestane maximum grootte is {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf index 7633f0a626..e8bfbbe420 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf @@ -127,8 +127,8 @@ Obie wartości powinny być równe. - The file is too large. Allowed maximum size is {{ limit }}. - Plik jest za duży. Maksymalny dozwolony rozmiar to {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Plik jest za duży. Maksymalny dozwolony rozmiar to {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf index c081feb0d9..bcb1df61ad 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf @@ -127,8 +127,8 @@ Os dois valores deveriam ser iguais. - The file is too large. Allowed maximum size is {{ limit }}. - O arquivo é muito grande ({{ size }}). O tamanho máximo permitido é de {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + O arquivo é muito grande. O tamanho máximo permitido é de {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf index 8d61cd9b98..ce52dd0f72 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf @@ -127,8 +127,8 @@ Os dois valores devem ser iguais. - The file is too large. Allowed maximum size is {{ limit }}. - O arquivo é muito grande. O tamanho máximo permitido é de {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + O arquivo é muito grande. O tamanho máximo permitido é de {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf index ece0c3585f..5d7c4aa770 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf @@ -127,8 +127,8 @@ Cele două valori ar trebui să fie egale. - The file is too large. Allowed maximum size is {{ limit }}. - Fișierul este prea mare. Mărimea maximă permisă este {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Fișierul este prea mare. Mărimea maximă permisă este {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf index eefbeadd5c..411d4d86db 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf @@ -127,8 +127,8 @@ Оба значения должны быть одинаковыми. - The file is too large. Allowed maximum size is {{ limit }}. - Файл слишком большой. Максимальный допустимый размер {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Файл слишком большой. Максимальный допустимый размер {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf index 86a54a29c8..830e7679ed 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf @@ -127,8 +127,8 @@ Tieto dve hodnoty by mali byť rovnaké. - The file is too large. Allowed maximum size is {{ limit }}. - Súbor je príliš veľký. Maximálna povolená veľkosť je {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Súbor je príliš veľký. Maximálna povolená veľkosť je {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf index 3fc8d3aba0..132dc27c89 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf @@ -127,8 +127,8 @@ Vrednosti morata biti enaki. - The file is too large. Allowed maximum size is {{ limit }}. - Datoteka je prevelika. Največja dovoljena velikost je {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Datoteka je prevelika. Največja dovoljena velikost je {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf index 4f048b2d13..974d8ad02f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf @@ -127,8 +127,8 @@ Обе вредности треба да буду једнаке. - The file is too large. Allowed maximum size is {{ limit }}. - Датотека је превелика. Највећа дозвољена величина је {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Датотека је превелика. Највећа дозвољена величина је {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf index 825205f228..ae2b247474 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf @@ -127,8 +127,8 @@ Obe vrednosti treba da budu jednake. - The file is too large. Allowed maximum size is {{ limit }}. - Datoteka je prevelika. Najveća dozvoljena veličina je {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Datoteka je prevelika. Najveća dozvoljena veličina je {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf index f07985f4b9..41ea5579ef 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf @@ -127,8 +127,8 @@ Обидва занчення повинні бути одинаковими. - The file is too large. Allowed maximum size is {{ limit }}. - Файл занадто великий. Максимальний допустимий розмір {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + Файл занадто великий. Максимальний допустимий розмір {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf index dfd3d9560b..0fcb15288f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf @@ -127,8 +127,8 @@ 该两个变量的值应该相同. - The file is too large. Allowed maximum size is {{ limit }}. - 文件太大, 文件大小不可以超过 {{ limit }}. + The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}. + 文件太大, 文件大小不可以超过 {{ limit }} {{ suffix }}. The file is too large. diff --git a/src/Symfony/Component/Validator/Constraints/File.php b/src/Symfony/Component/Validator/Constraints/File.php index cba412721b..49880ad679 100644 --- a/src/Symfony/Component/Validator/Constraints/File.php +++ b/src/Symfony/Component/Validator/Constraints/File.php @@ -27,7 +27,7 @@ class File extends Constraint public $maxSizeMessage = 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.'; public $mimeTypesMessage = 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.'; - public $uploadIniSizeErrorMessage = 'The file is too large. Allowed maximum size is {{ limit }}.'; + public $uploadIniSizeErrorMessage = 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.'; public $uploadFormSizeErrorMessage = 'The file is too large.'; public $uploadPartialErrorMessage = 'The file was only partially uploaded.'; public $uploadNoFileErrorMessage = 'No file was uploaded.'; diff --git a/src/Symfony/Component/Validator/Constraints/FileValidator.php b/src/Symfony/Component/Validator/Constraints/FileValidator.php index 6c5aeb5192..76869c24d2 100644 --- a/src/Symfony/Component/Validator/Constraints/FileValidator.php +++ b/src/Symfony/Component/Validator/Constraints/FileValidator.php @@ -44,7 +44,10 @@ class FileValidator extends ConstraintValidator case UPLOAD_ERR_INI_SIZE: $maxSize = UploadedFile::getMaxFilesize(); $maxSize = $constraint->maxSize ? min($maxSize, $constraint->maxSize) : $maxSize; - $this->context->addViolation($constraint->uploadIniSizeErrorMessage, array('{{ limit }}' => $maxSize.' bytes')); + $this->context->addViolation($constraint->uploadIniSizeErrorMessage, array( + '{{ limit }}' => $maxSize, + '{{ suffix }}' => 'bytes', + )); return; case UPLOAD_ERR_FORM_SIZE: diff --git a/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php index e8ec770289..318245979e 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php @@ -317,7 +317,10 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase ); if (class_exists('Symfony\Component\HttpFoundation\File\UploadedFile')) { - $tests[] = array(UPLOAD_ERR_INI_SIZE, 'uploadIniSizeErrorMessage', array('{{ limit }}' => UploadedFile::getMaxFilesize() . ' bytes')); + $tests[] = array(UPLOAD_ERR_INI_SIZE, 'uploadIniSizeErrorMessage', array( + '{{ limit }}' => UploadedFile::getMaxFilesize(), + '{{ suffix }}' => 'bytes', + )); } return $tests;