- LSform : Traduction d' "Envoyer"
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 17 Feb 2009 14:04:35 +0000 (14:04 +0000)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 17 Feb 2009 14:04:35 +0000 (14:04 +0000)
trunk/includes/class/class.LSform.php

index 273af0f..d26c62a 100644 (file)
@@ -57,9 +57,14 @@ class LSform {
    *
    * @retval void
    */ 
-  function LSform (&$ldapObject,$idForm,$submit="Envoyer"){
+  function LSform (&$ldapObject,$idForm,$submit=NULL){
     $this -> idForm = $idForm;
-    $this -> submit = $submit;
+    if (!$submit) {
+      $this -> submit = _("Validate");
+    }
+    else {
+      $this -> submit = $submit;
+    }
     $this -> ldapObject = $ldapObject;
     LSsession :: loadLSclass('LSformElement');
   }