Browse Source

refix string error translation

Sevajol Bastien 12 years ago
parent
commit
6583a2bc31

+ 0 - 0
app/Resources/translations/adminui.en.yml View File


+ 0 - 0
app/Resources/translations/adminui.fr.yml View File


+ 0 - 0
app/Resources/translations/elements.en.yml View File


+ 0 - 0
app/Resources/translations/elements.fr.yml View File


+ 0 - 0
app/Resources/translations/flash.en.yml View File


+ 0 - 0
app/Resources/translations/flash.fr.yml View File


+ 0 - 0
app/Resources/translations/groupform.fr.yml View File


+ 0 - 0
app/Resources/translations/groups.fr.yml View File


+ 0 - 0
app/Resources/translations/messages.fr.yml View File


+ 0 - 0
app/Resources/translations/navigationui.en.yml View File


+ 0 - 0
app/Resources/translations/navigationui.fr.yml View File


+ 0 - 0
app/Resources/translations/network.en.yml View File


+ 0 - 0
app/Resources/translations/network.fr.yml View File


+ 0 - 0
app/Resources/translations/userform.en.yml View File


+ 0 - 0
app/Resources/translations/userform.fr.yml View File


+ 0 - 0
app/Resources/translations/users.fr.yml View File


+ 0 - 0
app/Resources/translations/userui.en.yml View File


+ 0 - 0
app/Resources/translations/userui.fr.yml View File


+ 2 - 0
app/Resources/translations/validators.en.yml View File

@@ -32,7 +32,9 @@ error:
32 32
     name:
33 33
       notblank:          You must enter a name.
34 34
       toshort:           The name is too short.
35
+      toshort|error.element.name.toshort: The name is too short.
35 36
       tolong:            The name is too long.
37
+      tolong|error.element.name.tolong: The name is too long.
36 38
   url:
37 39
     invalid:             The URL is not a valid one.
38 40
   

+ 2 - 0
app/Resources/translations/validators.fr.yml View File

@@ -32,7 +32,9 @@ error:
32 32
     name:
33 33
       notblank:          Vous devez saisir un nom
34 34
       toshort:           Le nom est trop court
35
+      toshort|error.element.name.toshort: Le nom est trop court
35 36
       tolong:            Le nom est trop long
37
+      tolong|error.element.name.tolong: Le nom est trop long
36 38
   url:
37 39
     invalid:             L'adresse fournie est invalide
38 40
   

+ 1 - 1
src/Muzich/CoreBundle/Entity/Element.php View File

@@ -180,7 +180,7 @@ class Element
180 180
    * 
181 181
    * @ORM\Column(type = "string", length = 128)
182 182
    * @Assert\NotBlank(message = "error.element.name.notblank")
183
-   * @Assert\Length(min = 3, max = 84, minMessage = "error.element.name.toshort", maxMessage = "error.element.name.tolong")
183
+   * @Assert\Length(min = 3, max = 84, minMessage = "error.element.name.toshort|error.element.name.toshort", maxMessage = "error.element.name.tolong|error.element.name.tolong")
184 184
    * @var type string
185 185
    */
186 186
   protected $name;