From: Greg Burri Date: Thu, 19 Feb 2009 23:17:45 +0000 (+0000) Subject: MOD some translation fr -> en X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=commitdiff_plain;h=3d7756d15db9be15c3bd350dac05b52672b4e50f MOD some translation fr -> en --- diff --git a/js/chat/conversations.js b/js/chat/conversations.js index 5ba27d8..c7be4e0 100644 --- a/js/chat/conversations.js +++ b/js/chat/conversations.js @@ -136,12 +136,12 @@ euphorik.Conversations.prototype.ajouterMessageRepond = function(mess) { /** * Construit tous les id potentiels d'un message, renvoie par exemple : - * "conv9b28mess1h, conv9b2amess1h, conv9b32mess1h" + * "#conv9b28mess1h, #conv9b2amess1h, #conv9b32mess1h" */ euphorik.Conversations.prototype.exprIdsPotentiels = function(mess) { var exprMess = ""; this.conversations.each(function(i, conv) { - exprMess += (mess !== "" ? ", " : "") + "#" + mess.getId(conv.getId()); + exprMess += (exprMess !== "" ? ", " : "") + "#" + mess.getId(conv.getId()); }); return exprMess; }; @@ -165,7 +165,7 @@ euphorik.Conversations.prototype.rafraichireNombreMessagesRepond = function() { /** * Affiche les messages auquel l'utilisateur souhaite répondre au sein des messages des conversations. - * Utilisé lorsqu'une conversation est extraite. + * Utilisé après qu'une conversation soit extraite. */ euphorik.Conversations.prototype.afficherMessagesRepondConversations = function() { var expr = ""; diff --git a/js/util.js b/js/util.js index aff9d6e..5554c51 100644 --- a/js/util.js +++ b/js/util.js @@ -190,14 +190,6 @@ euphorik.Util.prototype.infoBulle = function(message, element, position) { ).click(cacherBulle); }; -/** - * Utilisé pour l'envoie de données avec la méthode ajax de jQuery. - * Obsolète : à virer - */ -/*euphorik.Util.prototype.jsonVersAction = function(json) { - return { action : JSON.stringify(json) }; -};*/ - /** * Retourne un hash md5 d'une chaine, dépend de md5.js. * @param chaine un string quelconque @@ -207,7 +199,7 @@ euphorik.Util.prototype.md5 = function(chaine) { return hex_md5(chaine); }; -// pompé de http://www.faqts.com/knowledge_base/view.phtml/aid/13562/fid/130 +// Taken from http://www.faqts.com/knowledge_base/view.phtml/aid/13562/fid/130 euphorik.Util.prototype.setSelectionRange = function(input, selectionStart, selectionEnd) { if (input.setSelectionRange) { input.focus(); @@ -261,9 +253,10 @@ euphorik.Util.prototype.replaceSelection = function(input, replaceString) { }; /** - * Rot13 d'une chaine, voir : http://fr.wikipedia.org/wiki/ROT13 + * Applies rot13 to a given string. See : http://en.wikipedia.org/wiki/ROT13. + * @param str the string. */ -euphorik.Util.prototype.rot13 = function(chaine) { +euphorik.Util.prototype.rot13 = function(str) { var ACode = 'A'.charCodeAt(0); var aCode = 'a'.charCodeAt(0); var MCode = 'M'.charCodeAt(0); @@ -283,5 +276,5 @@ euphorik.Util.prototype.rot13 = function(chaine) { (c > MCode && c <= ZCode || c > mCode && c <= zCode ? -13 : 0)) ) + f(ch, pos + 1); }; - return f(chaine, 0); + return f(str, 0); };