Traduction FR->EN des classes javascript

This commit is contained in:
Charles Videau 2009-02-17 13:46:41 +00:00
parent 39c9a4fbf4
commit ec7d134158
7 changed files with 24 additions and 26 deletions

View file

@ -16,7 +16,7 @@ var LSconfirmBox = new Class({
this.title.set('html',this._options.title); this.title.set('html',this._options.title);
} }
else { else {
this.title.set('html','Comfirmation'); this.title.set('html','Confirmation');
}; };
this.title.injectInside(this.box) this.title.injectInside(this.box)
@ -31,7 +31,7 @@ var LSconfirmBox = new Class({
this.text.set('html',this._options.text); this.text.set('html',this._options.text);
} }
else { else {
this.text.set('html','You comfirm your choice ?'); this.text.set('html','You confirm your choice ?');
} }
this.text.injectInside(this.box); this.text.injectInside(this.box);

View file

@ -126,7 +126,7 @@ var LSdefault = new Class({
return true; return true;
} }
else { else {
LSdebug('retour non-interprétable'); LSdebug('Non computable return value');
this.loadingImgHide(); this.loadingImgHide();
return; return;
} }

View file

@ -138,7 +138,7 @@ var LSform = new Class({
this._modules[fieldType].reinitialize(li); this._modules[fieldType].reinitialize(li);
} }
catch(e) { catch(e) {
LSdebug('Pas de reinitialise pour ' + fieldType); LSdebug('No reinitialize for ' + fieldType);
} }
} }
}, },

View file

@ -10,7 +10,7 @@ var LSformElement_select_object_field = new Class({
}, },
initializeLSformElement_select_object: function() { initializeLSformElement_select_object: function() {
// Class du UL // Class of UL
if (this.params.multiple) { if (this.params.multiple) {
this.ul.addClass('LSformElement_select_object_edit'); this.ul.addClass('LSformElement_select_object_edit');
} }

View file

@ -36,7 +36,7 @@ var LSrelation = new Class({
var a = img.getPrevious('a'); var a = img.getPrevious('a');
this.confirmBox = new LSconfirmBox({ this.confirmBox = new LSconfirmBox({
text: 'Do you really want to delete "'+a.innerHTML+'" ?', text: 'Do you really want to delete "'+a.innerHTML+'" ?',
title: 'Caution', title: 'Warning',
validate_label: 'Delete', validate_label: 'Delete',
cancel_label: 'Cancel', cancel_label: 'Cancel',
startElement: img, startElement: img,
@ -85,7 +85,7 @@ var LSrelation = new Class({
} }
} }
catch(e) { catch(e) {
LSdebug('Error during the li of DN delete : '+data.dn); LSdebug('Error while deleting the li of DN : '+data.dn);
} }
} }
}, },

View file

@ -210,8 +210,8 @@ var LSsmoothbox = new Class({
if (!this._closeConfirmOpened) { if (!this._closeConfirmOpened) {
this._closeConfirmOpened = 1; this._closeConfirmOpened = 1;
this.confirmBox = new LSconfirmBox({ this.confirmBox = new LSconfirmBox({
text: 'Are you sure you want to close this window and lose all changes ?', text: 'Are you sure to want to close this window and lose all changes ?',
title: 'Caution', title: 'Warning',
validate_label: 'Validate', validate_label: 'Validate',
cancel_label: 'Cancel', cancel_label: 'Cancel',
startElement: this.closeBtn, startElement: this.closeBtn,

View file

@ -14,20 +14,18 @@ function LSdebug(arguments) {
} }
/** /**
* Construction d'une chaine formatée * Construction of formatted string
* *
* Cette fonction retourne la valeur d'une chaine formatée selon le format * This function returns a formatted string according to given data & format parameters
* et les données passés en paramètre.
* *
* @author Benjamin Renard <brenard@easter-eggs.com> * @author Benjamin Renard <brenard@easter-eggs.com>
* *
* @param[in] $format string Format de la chaine * @param[in] $format string String Format
* @param[in] $data mixed Les données pour composés la chaine * @param[in] $data mixed Data used to compose the string.
* Ce paramètre peut être un tableau de string ou un objet. * It can be strings array or object.
* @param[in] $meth string Le nom de la methode de l'objet(s) à appeler pour * @param[in] $meth string Object method name to call to get the new value for the formatted string.
* obtenir la valeur de remplacement dans la chaine formatée.
* *
* Exemple d'appel : * Invocation example :
* getFData('%{test1} je %{test2}',{ * getFData('%{test1} je %{test2}',{
* getValue: function(val) { * getValue: function(val) {
* var data = { * var data = {
@ -38,7 +36,7 @@ function LSdebug(arguments) {
* } * }
* },'getValue'); * },'getValue');
* *
* @retval string La chaine formatée * @retval string The formatted string
*/ */
function getFData(format,data,meth) { function getFData(format,data,meth) {
var getMotif = new RegExp('%\{(([A-Za-z0-9]+)(\:(-?[0-9])+)?(\:(-?[0-9])+)?)\}'); var getMotif = new RegExp('%\{(([A-Za-z0-9]+)(\:(-?[0-9])+)?(\:(-?[0-9])+)?)\}');
@ -106,11 +104,11 @@ function getFData(format,data,meth) {
} }
/** /**
* Supprime les accents d'une chaine * Delete accentuated characters in a string
* *
* @param[in] $string La chaine originale * @param[in] $string Original string
* *
* @retval string La chaine sans les accents * @retval string de-accentuated string
*/ */
function replaceAccents(str) { function replaceAccents(str) {
var new_str = String(str); var new_str = String(str);
@ -128,12 +126,12 @@ function replaceAccents(str) {
} }
/** /**
* Remplace les espaces ou les tabulations d'une chaine * Replace spaces or tabs of a string by an argument
* *
* @param[in] $string La chaine originale * @param[in] $string The original string
* @param[in] $string Le caractère à mettre à la place * @param[in] $string The character to set instead of spaces or tabs
* *
* @retval string La chaine sans espace * @retval string The modified outspaced string
*/ */
function replaceSpaces(str,to) { function replaceSpaces(str,to) {
if (!$type(to)) { if (!$type(to)) {