MOD french -> english (2)
[euphorik.git] / js / client.js
index 5324f96..98c0413 100644 (file)
@@ -31,7 +31,7 @@ euphorik.Client = function(util, communication) {
    // données personnels\r
    this.resetDonneesPersonnelles();\r
    \r
-   this.setStatut(euphorik.Client.statutType.deconnected);\r
+   this.setStatut(euphorik.Client.statutType.disconnected);\r
    \r
    // si true alors chaque modification du client est mémorisé sur le serveur\r
    this.autoflush = $.browser.opera;\r
@@ -44,7 +44,7 @@ euphorik.Client.statutType = {
    // mode identifié, peut poster des messages mais n'a pas accès au profile\r
    auth_not_registered : 1,\r
    // mode déconnecté, ne peut pas poster de message\r
-   deconnected : 2\r
+   disconnected : 2\r
 };\r
 \r
 euphorik.Client.prototype.resetDonneesPersonnelles = function() {\r
@@ -232,7 +232,7 @@ euphorik.Client.prototype.setStatut = function(statut)
       statut =\r
          statut === "auth_registered" ?\r
             euphorik.Client.statutType.auth_registered :\r
-         (statut === "auth_not_registered" ? euphorik.Client.statutType.auth_not_registered : euphorik.Client.statutType.deconnected);\r
+         (statut === "auth_not_registered" ? euphorik.Client.statutType.auth_not_registered : euphorik.Client.statutType.disconnected);\r
    }\r
    \r
    if (statut === this.statut) {\r
@@ -244,14 +244,12 @@ euphorik.Client.prototype.setStatut = function(statut)
    this.majMenu();\r
    this.majLogo();\r
 };\r
-\r
-/**\r
-  * Effectue la connexion vers le serveur.\r
-  * Cette fonction est bloquante tant que la connexion n'a pas été établie.\r
-  * S'il existe un cookie en local on s'authentifie directement avec lui.\r
-  * Si il n'est pas possible de s'authentifier alors on affiche un captcha anti-bot.\r
+
+/**
+  * Try to authentify the client with the cookie information.
+  * Do nothing if there is no cookie.
   */\r
-euphorik.Client.prototype.connexionCookie = function() {\r
+euphorik.Client.prototype.connectionCookie = function() {\r
    this.getCookie();\r
    if (!this.cookie) {\r
       return false;\r
@@ -315,11 +313,11 @@ euphorik.Client.prototype.connexion = function(action, messageJson) {
    return this.authentifie();\r
 };\r
 \r
-euphorik.Client.prototype.deconnexion = function() {\r
+euphorik.Client.prototype.disconnect = function() {\r
    this.flush(true);\r
    this.delCookie();\r
    this.resetDonneesPersonnelles();\r
-   this.setStatut(euphorik.Client.statutType.deconnected); // deconnexion\r
+   this.setStatut(euphorik.Client.statutType.disconnected);\r
 };\r
 \r
 euphorik.Client.prototype.chargerDonnees = function(data) {\r