aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-15 04:56:08 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-15 04:56:08 +0000
commit0c37e52bc0bfbb49a7cfef8baf6c48ecc0598b90 (patch)
tree0771f8c8aaa8a05929c50faa558c40bf34130294 /js
parentdbebcadbc14737ccd151e3225b0a2deede14b5ff (diff)
downloadelgg-0c37e52bc0bfbb49a7cfef8baf6c48ecc0598b90.tar.gz
elgg-0c37e52bc0bfbb49a7cfef8baf6c48ecc0598b90.tar.bz2
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
Diffstat (limited to 'js')
-rw-r--r--js/lib/languages.js2
1 files changed, 1 insertions, 1 deletions
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() {