MOD french -> english (6)
[euphorik.git] / js / chat / commandes.js
index fb822aa..5aec5d5 100644 (file)
@@ -39,7 +39,7 @@ euphorik.Commandes = function(client, pageMinichat, util, formater) {
    this.texteAide = "<div id=\"aideCommandes\"><h1>Commandes</h1><ul>";
    objectEach(
       euphorik.Commandes.liste,
-      function(nom, commande) {
+      function(name, commande) {
          thisCommandes.texteAide += "<li><span class=\"usage\">" + thisCommandes.formater.traitementComplet(commande.usage) + "</span> : " + thisCommandes.formater.traitementComplet(commande.description) + "</li>";
       }
    );
@@ -94,14 +94,14 @@ euphorik.Commandes.prototype.exec = function(chaine) {
       return [euphorik.Commandes.statut.pas_une_commande, ''];
    }
    
-   var nomCommande = fragments[0].slice(1);
+   var commandName = fragments[0].slice(1);
    var args = fragments.slice(1);
    
-   if (nomCommande === "") {
+   if (commandName === "") {
       return [euphorik.Commandes.statut.erreur_commande, 'La commande est vide'];
    }
    // commandes spéciales pour afficher l'aide : "?", "h", "help", "aide"
-   if (nomCommande === "?" || nomCommande === "h" || nomCommande === "help" || nomCommande === "aide") {
+   if (commandName === "?" || commandName === "h" || commandName === "help" || commandName === "aide") {
       this.util.messageDialog(
          this.texteAide,
          euphorik.Util.messageType.informatif,
@@ -112,9 +112,9 @@ euphorik.Commandes.prototype.exec = function(chaine) {
       return [euphorik.Commandes.statut.ok, ''];
    }
    
-   if (euphorik.Commandes.liste.hasOwnProperty(nomCommande)) {
-      return euphorik.Commandes.liste[nomCommande].exec(args, this.client, this.pageMinichat);
+   if (euphorik.Commandes.liste.hasOwnProperty(commandName)) {
+      return euphorik.Commandes.liste[commandName].exec(args, this.client, this.pageMinichat);
    }
    
-   return [euphorik.Commandes.statut.erreur_commande, 'La commande /' + nomCommande + ' est inconnue'];
+   return [euphorik.Commandes.statut.erreur_commande, 'La commande /' + commandName + ' est inconnue'];
 };