Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

separate numeric values from suffixes in File constraint's error mess…

…age `$maxSizeMessage`
  • Loading branch information...
commit 868d649d5c9e24f58c0ace5a55d28cc9731e2f56 1 parent dd0da03
@craue craue authored
Showing with 78 additions and 77 deletions.
  1. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf
  2. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf
  3. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf
  4. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf
  5. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf
  6. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf
  7. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf
  8. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf
  9. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf
  10. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf
  11. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf
  12. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf
  13. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf
  14. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf
  15. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf
  16. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf
  17. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf
  18. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf
  19. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf
  20. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf
  21. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf
  22. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf
  23. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf
  24. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf
  25. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf
  26. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf
  27. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf
  28. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf
  29. +3 −3 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf
  30. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf
  31. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf
  32. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf
  33. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sv.xlf
  34. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf
  35. +2 −2 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf
  36. +1 −1  src/Symfony/Component/Validator/Constraints/File.php
  37. +6 −5 src/Symfony/Component/Validator/Constraints/FileValidator.php
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xlf
@@ -63,8 +63,8 @@
<target>No es pot llegir l'arxiu.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>L'arxiu és massa gran ({{ size }}). La grandària màxima permesa és {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>L'arxiu és massa gran ({{ size }} {{ suffix }}). La grandària màxima permesa és {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.cs.xlf
@@ -63,8 +63,8 @@
<target>Soubor je nečitelný.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Soubor je příliš velký ({{ size }}). Maximální povolená velikost souboru je {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Soubor je příliš velký ({{ size }} {{ suffix }}). Maximální povolená velikost souboru je {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.da.xlf
@@ -63,8 +63,8 @@
<target>Filen kan ikke læses.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Filen er for stor ({{ size }}). Tilladte maksimale størrelse {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Filen er for stor ({{ size }} {{ suffix }}). Tilladte maksimale størrelse {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.de.xlf
@@ -63,8 +63,8 @@
<target>Die Datei ist nicht lesbar.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Die Datei ist zu groß ({{ size }}). Die maximal zulässige Größe beträgt {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Die Datei ist zu groß ({{ size }} {{ suffix }}). Die maximal zulässige Größe beträgt {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.en.xlf
@@ -63,8 +63,8 @@
<target>The file is not readable.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xlf
@@ -63,8 +63,8 @@
<target>No se puede leer el archivo.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>El archivo es demasiado grande ({{ size }}). El tamaño máximo permitido es {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>El archivo es demasiado grande ({{ size }} {{ suffix }}). El tamaño máximo permitido es {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.et.xlf
@@ -63,8 +63,8 @@
<target>Fail ei ole loetav.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Fail on liiga suur ({{ size }}). Suurim lubatud suurus on {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Fail on liiga suur ({{ size }} {{ suffix }}). Suurim lubatud suurus on {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.eu.xlf
@@ -63,8 +63,8 @@
<target>Fitxategia ez dago irakurgai.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Fitxategia handiegia da ({{ size }}). Baimendutako tamainu handiena {{ limit }} da.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Fitxategia handiegia da ({{ size }} {{ suffix }}). Baimendutako tamainu handiena {{ limit }} {{ suffix }} da.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fa.xlf
@@ -63,8 +63,8 @@
<target>فایل قابلیت خواندن ندارد.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>فایل بیش از اندازه بزرگ است({{ size }}). حداکثر اندازه مجاز برابر {{ limit }} است.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>فایل بیش از اندازه بزرگ است({{ size }} {{ suffix }}). حداکثر اندازه مجاز برابر {{ limit }} {{ suffix }} است.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fi.xlf
@@ -63,8 +63,8 @@
<target>Tiedostoa ei voida lukea.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Tiedostonkoko ({{ size }}) on liian iso. Suurin sallittu tiedostonkoko on {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Tiedostonkoko ({{ size }} {{ suffix }}) on liian iso. Suurin sallittu tiedostonkoko on {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.fr.xlf
@@ -63,8 +63,8 @@
<target>Le fichier n'est pas lisible.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Le fichier est trop volumineux ({{ size }}). Sa taille ne doit pas dépasser {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Le fichier est trop volumineux ({{ size }} {{ suffix }}). Sa taille ne doit pas dépasser {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.he.xlf
@@ -63,8 +63,8 @@
<target>לא ניתן לקרוא את הקובץ.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>הקובץ גדול מדי ({{ size }}). הגודל המרבי המותר הוא {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>הקובץ גדול מדי ({{ size }} {{ suffix }}). הגודל המרבי המותר הוא {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hr.xlf
@@ -63,8 +63,8 @@
<target>Datoteka nije čitljiva.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Datoteka je prevelika ({{ size }}). Najveća dozvoljena veličina je {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Datoteka je prevelika ({{ size }} {{ suffix }}). Najveća dozvoljena veličina je {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xlf
@@ -63,8 +63,8 @@
<target>A fájl nem olvasható.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>A fájl túl nagy ({{ size }}). A legnagyobb megengedett méret {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>A fájl túl nagy ({{ size }} {{ suffix }}). A legnagyobb megengedett méret {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hy.xlf
@@ -63,8 +63,8 @@
<target>Ֆայլը անընթեռնելի է.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Ֆայլը չափազանց մեծ է ({{ size }}): Մաքսիմալ թույլատրելի չափսը՝ {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Ֆայլը չափազանց մեծ է ({{ size }} {{ suffix }}): Մաքսիմալ թույլատրելի չափսը՝ {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.id.xlf
@@ -63,8 +63,8 @@
<target>Berkas tidak bisa dibaca.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Ukuran berkas terlalu besar ({{ size }}). Ukuran maksimum yang diijinkan adalah {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Ukuran berkas terlalu besar ({{ size }} {{ suffix }}). Ukuran maksimum yang diijinkan adalah {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.it.xlf
@@ -63,8 +63,8 @@
<target>Il file non è leggibile.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Il file è troppo grande ({{ size }}). La dimensione massima consentita è {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Il file è troppo grande ({{ size }} {{ suffix }}). La dimensione massima consentita è {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ja.xlf
@@ -63,8 +63,8 @@
<target>ファイルを読み込めません.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>ファイルのサイズが大きすぎます({{ size }})。有効な最大サイズは{{ limit }}です.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>ファイルのサイズが大きすぎます({{ size }} {{ suffix }})。有効な最大サイズは{{ limit }} {{ suffix }}です.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lb.xlf
@@ -63,8 +63,8 @@
<target>De Fichier ass net liesbar.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>De Fichier ass ze grouss ({{ size }}). Déi zougeloosse Maximalgréisst bedréit {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>De Fichier ass ze grouss ({{ size }} {{ suffix }}). Déi zougeloosse Maximalgréisst bedréit {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.lt.xlf
@@ -63,8 +63,8 @@
<target>Negalima nuskaityti bylos.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Byla yra per didelė ({{ size }}). Maksimalus dydis {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Byla yra per didelė ({{ size }} {{ suffix }}). Maksimalus dydis {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.mn.xlf
@@ -63,8 +63,8 @@
<target>Файл уншигдахуйц биш байна.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Файл хэтэрхий том байна ({{ size }}). Зөвшөөрөгдөх дээд хэмжээ {{ limit }} байна.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Файл хэтэрхий том байна ({{ size }} {{ suffix }}). Зөвшөөрөгдөх дээд хэмжээ {{ limit }} {{ suffix }} байна.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nb.xlf
@@ -63,8 +63,8 @@
<target>Filen kan ikke leses.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Filen er for stor ({{ size }}). Tilatte maksimale størrelse {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Filen er for stor ({{ size }} {{ suffix }}). Tilatte maksimale størrelse {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.nl.xlf
@@ -63,8 +63,8 @@
<target>Het bestand is niet leesbaar.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Het bestand is te groot ({{ size }}). Toegestane maximum grootte is {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Het bestand is te groot ({{ size }} {{ suffix }}). Toegestane maximum grootte is {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pl.xlf
@@ -63,8 +63,8 @@
<target>Nie można odczytać pliku.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Plik jest za duży ({{ size }}). Maksymalny dozwolony rozmiar to {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Plik jest za duży ({{ size }} {{ suffix }}). Maksymalny dozwolony rozmiar to {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt.xlf
@@ -63,8 +63,8 @@
<target>O arquivo não pôde ser lido.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>O arquivo é muito grande ({{ size }}). O tamanho máximo permitido é de {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>O arquivo é muito grande ({{ size }} {{ suffix }}). O tamanho máximo permitido é de {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.pt_BR.xlf
@@ -63,8 +63,8 @@
<target>O arquivo não pode ser lido.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>O arquivo é muito grande ({{ size }}). O tamanho máximo permitido é {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>O arquivo é muito grande ({{ size }} {{ suffix }}). O tamanho máximo permitido é {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ro.xlf
@@ -63,8 +63,8 @@
<target>Fișierul nu poate fi citit.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Fișierul este prea mare ({{ size }}). Dimensiunea maximă permisă este {{ limit}}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Fișierul este prea mare ({{ size }} {{ suffix }}). Dimensiunea maximă permisă este {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ru.xlf
@@ -63,8 +63,8 @@
<target>Файл не может быть прочитан.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Файл слишком большой ({{ size }}). Максимальный допустимый размер {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Файл слишком большой ({{ size }} {{ suffix }}). Максимальный допустимый размер {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
6 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xlf
@@ -63,8 +63,8 @@
<target>Súbor nie je čitateľný.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Súbor je príliš veľký ({{ size }}). Maximálna povolená veľkosť je {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Súbor je príliš veľký ({{ size }} {{ suffix }}). Maximálna povolená veľkosť je {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
@@ -216,4 +216,4 @@
</trans-unit>
</body>
</file>
-</xliff>
+</xliff>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sl.xlf
@@ -63,8 +63,8 @@
<target>Datoteke ni mogoče prebrati.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Datoteka je prevelika ({{ size }}). Največja dovoljena velikost je {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Datoteka je prevelika ({{ size }} {{ suffix }}). Največja dovoljena velikost je {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Cyrl.xlf
@@ -63,8 +63,8 @@
<target>Датотека није читљива.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Датотека је превелика ({{ size }}). Највећа дозвољена величина је {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Датотека је превелика ({{ size }} {{ suffix }}). Највећа дозвољена величина је {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sr_Latn.xlf
@@ -63,8 +63,8 @@
<target>Datoteka nije čitljiva.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Datoteka je prevelika ({{ size }}). Najveća dozvoljena veličina je {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Datoteka je prevelika ({{ size }} {{ suffix }}). Najveća dozvoljena veličina je {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sv.xlf
@@ -63,8 +63,8 @@
<target>Filen är inte läsbar.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Filen är för stor ({{ size }}). Största tillåtna storlek är {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Filen är för stor ({{ size }} {{ suffix }}). Största tillåtna storlek är {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ua.xlf
@@ -63,8 +63,8 @@
<target>Файл не читається.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>Файл занадто великий ({{ size }}). Дозволений максимальний розмір {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>Файл занадто великий ({{ size }} {{ suffix }}). Дозволений максимальний розмір {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
4 src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.zh_CN.xlf
@@ -63,8 +63,8 @@
<target>文件不可读.</target>
</trans-unit>
<trans-unit id="16">
- <source>The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.</source>
- <target>文件太大 ({{ size }}). 文件大小不可以超过 {{ limit }}.</target>
+ <source>The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.</source>
+ <target>文件太大 ({{ size }} {{ suffix }}). 文件大小不可以超过 {{ limit }} {{ suffix }}.</target>
</trans-unit>
<trans-unit id="17">
<source>The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.</source>
View
2  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 }}.';
View
11 src/Symfony/Component/Validator/Constraints/FileValidator.php
@@ -100,23 +100,24 @@ public function validate($value, Constraint $constraint)
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,
));
Please sign in to comment.
Something went wrong with that request. Please try again.