aboutsummaryrefslogtreecommitdiff
path: root/js/lib/languages.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/languages.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);
}