MOD some translation fr -> en
[euphorik.git] / js / util.js
index aff9d6e..5554c51 100644 (file)
@@ -190,14 +190,6 @@ euphorik.Util.prototype.infoBulle = function(message, element, position) {
    ).click(cacherBulle);\r
 };\r
 \r
-/**\r
-  * Utilisé pour l'envoie de données avec la méthode ajax de jQuery.\r
-  * Obsolète : à virer\r
-  */\r
-/*euphorik.Util.prototype.jsonVersAction = function(json) {\r
-   return { action : JSON.stringify(json) };\r
-};*/\r
-\r
 /**\r
   * Retourne un hash md5 d'une chaine, dépend de md5.js.\r
   * @param chaine un string quelconque\r
@@ -207,7 +199,7 @@ euphorik.Util.prototype.md5 = function(chaine) {
    return hex_md5(chaine);\r
 };\r
 \r
-// pompé de http://www.faqts.com/knowledge_base/view.phtml/aid/13562/fid/130\r
+// Taken from http://www.faqts.com/knowledge_base/view.phtml/aid/13562/fid/130\r
 euphorik.Util.prototype.setSelectionRange = function(input, selectionStart, selectionEnd) {\r
    if (input.setSelectionRange) {\r
       input.focus();\r
@@ -261,9 +253,10 @@ euphorik.Util.prototype.replaceSelection = function(input, replaceString) {
 };\r
 \r
 /**\r
-  * Rot13 d'une chaine, voir : http://fr.wikipedia.org/wiki/ROT13\r
+  * Applies rot13 to a given string. See : http://en.wikipedia.org/wiki/ROT13.
+  * @param str the string.\r
   */\r
-euphorik.Util.prototype.rot13 = function(chaine) {\r
+euphorik.Util.prototype.rot13 = function(str) {\r
    var ACode = 'A'.charCodeAt(0);\r
    var aCode = 'a'.charCodeAt(0);\r
    var MCode = 'M'.charCodeAt(0);\r
@@ -283,5 +276,5 @@ euphorik.Util.prototype.rot13 = function(chaine) {
          (c > MCode && c <= ZCode || c > mCode && c <= zCode ? -13 : 0))\r
       ) + f(ch, pos + 1);\r
    };\r
-   return f(chaine, 0);\r
+   return f(str, 0);\r
 };\r