Browse Source

fix erreur de translation

Sevajol Bastien 12 years ago
parent
commit
b63496c6f2

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

@@ -31,10 +31,8 @@ error:
31 31
       invalid:           The URL (adresse http://) is not correct.
32 32
     name:
33 33
       notblank:          You must enter a name.
34
-      toshort:           The name is too short.
35
-      toshort|error.element.name.toshort: The name is too short.
36
-      tolong:            The name is too long.
37
-      tolong|error.element.name.tolong: The name is too long.
34
+      toshort:           The name is too short.|The name is too short.
35
+      tolong:            The name is too long.|The name is too long.
38 36
   url:
39 37
     invalid:             The URL is not a valid one.
40 38
   

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

@@ -32,9 +32,7 @@ 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
36 35
       tolong:            Le nom est trop long
37
-      tolong|error.element.name.tolong: Le nom est trop long
38 36
   url:
39 37
     invalid:             L'adresse fournie est invalide
40 38
   

+ 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|error.element.name.toshort", maxMessage = "error.element.name.tolong|error.element.name.tolong")
183
+   * @Assert\Length(min = 3, max = 84, minMessage = "error.element.name.toshort", maxMessage = "error.element.name.tolong")
184 184
    * @var type string
185 185
    */
186 186
   protected $name;

+ 2 - 1
src/Muzich/CoreBundle/Resources/views/Element/form.add.html.twig View File

@@ -1,6 +1,7 @@
1 1
 {% form_theme form 'MuzichCoreBundle:Form:errors.html.twig' %}
2 2
 
3
-{{ form_errors(form) }}
3
+{#{ form_errors(form) }#}
4
+
4 5
 <input type="hidden" id="form_add_step" value="1" />
5 6
 <script type="text/javascript">
6 7
   // bugfix: lors du rechargement du navigateur, il se peut que input#form_add_step