diff --git a/trunk/includes/class/class.LSform.php b/trunk/includes/class/class.LSform.php index 97549aac..b9637ffd 100644 --- a/trunk/includes/class/class.LSform.php +++ b/trunk/includes/class/class.LSform.php @@ -140,6 +140,7 @@ class LSform { function displayView(){ LSsession :: addCssFile('LSform.css'); LSsession :: addJSscript('LSform.js'); + LSsession :: addJSconfigParam('LSview_delete_label',_("Do you really want to delete")); $LSform_object = array( 'type' => $this -> ldapObject -> getType(), 'dn' => $this -> ldapObject -> getDn() diff --git a/trunk/includes/js/LSview.js b/trunk/includes/js/LSview.js index cca01d14..32c88c05 100644 --- a/trunk/includes/js/LSview.js +++ b/trunk/includes/js/LSview.js @@ -43,7 +43,7 @@ var LSview = new Class({ this._confirmBoxOpen = 1; var name = a.getParent().getPrevious('td').getElement('a').innerHTML; this.confirmBox = new LSconfirmBox({ - text: 'Etês-vous sur de vouloir supprimer "'+name+'" ?', + text: varLSdefault.LSjsConfig['LSview_delete_label'] + ' "'+name+'" ?', startElement: a, onConfirm: this.removeFromA.bind(this,a), onClose: this.onConfirmBoxClose.bind(this) @@ -57,7 +57,7 @@ var LSview = new Class({ this._confirmBoxOpen = 1; var name = $('LSview_title').innerHTML; this.confirmBox = new LSconfirmBox({ - text: 'Etês-vous sur de vouloir supprimer "'+name+'" ?', + text: varLSdefault.LSjsConfig['LSview_delete_label'] + ' "'+name+'" ?', startElement: a, onConfirm: this.removeFromA.bind(this,a), onClose: this.onConfirmBoxClose.bind(this)