From: brettp Date: Tue, 15 Mar 2011 04:56:08 +0000 (+0000) Subject: JS elgg.echo() returns the key if the string isn't found. This is consistent with... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0c37e52bc0bfbb49a7cfef8baf6c48ecc0598b90;p=lorea%2Felgg.git JS elgg.echo() returns the key if the string isn't found. This is consistent with the PHP version. git-svn-id: http://code.elgg.org/elgg/trunk@8718 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/js/lib/languages.js b/js/lib/languages.js index 06af1ca7f..0e3cf4472 100644 --- a/js/lib/languages.js +++ b/js/lib/languages.js @@ -80,7 +80,7 @@ elgg.echo = function(key, argv, language) { return vsprintf(map[key], argv); } - return undefined; + return key; }; elgg.config.translations.init = function() {