aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-10 03:37:47 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-10 03:37:47 +0000
commit21ccb999e304af2fa54b7fb6009199eec218d1d1 (patch)
tree60c7810cc4349beb29be81e02a7179dc3926d84e /js
parentace72189a7f56fbba898ee1ccb52fd7eba80ae2e (diff)
downloadelgg-21ccb999e304af2fa54b7fb6009199eec218d1d1.tar.gz
elgg-21ccb999e304af2fa54b7fb6009199eec218d1d1.tar.bz2
Fixes #3182: No attempt to go through simplecache at all, but any language can be exported to js now without any extra effort on the part of language pack authors
git-svn-id: http://code.elgg.org/elgg/trunk@8977 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'js')
-rw-r--r--js/lib/languages.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/lib/languages.js b/js/lib/languages.js
index 28b82e2e9..4cfe84968 100644
--- a/js/lib/languages.js
+++ b/js/lib/languages.js
@@ -26,7 +26,10 @@ elgg.add_translation = function(lang, translations) {
elgg.reload_all_translations = function(language) {
var lang = language || elgg.get_language();
- elgg.getJSON('ajax/view/js/languages/' + lang, {
+ elgg.getJSON('ajax/view/js/languages', {
+ data: {
+ language: lang
+ },
success: function(json) {
elgg.add_translation(lang, json);
}