From 0c37e52bc0bfbb49a7cfef8baf6c48ecc0598b90 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 15 Mar 2011 04:56:08 +0000 Subject: 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 --- js/lib/languages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') 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() { -- cgit v1.2.3