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
       invalid:           The URL (adresse http://) is not correct.
31
       invalid:           The URL (adresse http://) is not correct.
32
     name:
32
     name:
33
       notblank:          You must enter a name.
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
   url:
36
   url:
39
     invalid:             The URL is not a valid one.
37
     invalid:             The URL is not a valid one.
40
   
38
   

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

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

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

180
    * 
180
    * 
181
    * @ORM\Column(type = "string", length = 128)
181
    * @ORM\Column(type = "string", length = 128)
182
    * @Assert\NotBlank(message = "error.element.name.notblank")
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
    * @var type string
184
    * @var type string
185
    */
185
    */
186
   protected $name;
186
   protected $name;

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

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