From 80a374a29c6182fc49d8ef52be4af5d79c4312b8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 17 Feb 2009 08:41:21 +0000 Subject: [PATCH] - LSview : Passage par le JS de la traduction du label de suppression. --- trunk/includes/class/class.LSform.php | 1 + trunk/includes/js/LSview.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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)