From cdc7e665ca7b18e422444cd96ed4172a88255644 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 17 Feb 2009 11:36:54 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSconfirmBox=20:=20Ajout=20de=20la=20possib?= =?UTF-8?q?ilit=C3=A9=20de=20traduction=20des=20label=20des=20boutons=20?= =?UTF-8?q?=09et=20traduction=20des=20valeurs=20par=20d=C3=A9faut=20en=20a?= =?UTF-8?q?nglais.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/js/LSconfirmBox.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/trunk/includes/js/LSconfirmBox.js b/trunk/includes/js/LSconfirmBox.js index 26d69cf6..f11051d4 100644 --- a/trunk/includes/js/LSconfirmBox.js +++ b/trunk/includes/js/LSconfirmBox.js @@ -31,7 +31,7 @@ var LSconfirmBox = new Class({ this.text.set('html',this._options.text); } else { - this.text.set('html','Comfirmez-vous votre choix ?'); + this.text.set('html','You comfirm your choice ?'); } this.text.injectInside(this.box); @@ -41,13 +41,23 @@ var LSconfirmBox = new Class({ this.confirmBtn = new Element('span'); this.confirmBtn.addClass('btn-LSconfirmBox'); - this.confirmBtn.set('html','Valider'); + if (this._options.validate_label) { + this.confirmBtn.set('html',this._options.validate_label); + } + else { + this.confirmBtn.set('html','Validate'); + } this.confirmBtn.injectInside(this.btnsBox); this.confirmBtn.addEvent('click',this.confirm.bind(this)); this.cancelBtn = new Element('span'); this.cancelBtn.addClass('btn-LSconfirmBox'); - this.cancelBtn.set('html','Annuler'); + if (this._options.cancel_label) { + this.cancelBtn.set('html',this._options.cancel_label); + } + else { + this.cancelBtn.set('html','Cancel'); + } this.cancelBtn.injectInside(this.btnsBox); this.cancelBtn.addEvent('click',this.cancel.bind(this));