diff options
Diffstat (limited to 'js/lib/languages.js')
-rw-r--r-- | js/lib/languages.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/lib/languages.js b/js/lib/languages.js index 0e3cf4472..4cfe84968 100644 --- a/js/lib/languages.js +++ b/js/lib/languages.js @@ -25,11 +25,10 @@ elgg.add_translation = function(lang, translations) { */ elgg.reload_all_translations = function(language) { var lang = language || elgg.get_language(); - // This...................vvvvv is a double encoded question mark (? -> %2f -> %252f) - elgg.getJSON('js/languages%252f' + lang + '.js', { + + elgg.getJSON('ajax/view/js/languages', { data: { - 'viewtype': 'default', - 'lastcache': elgg.config.lastcache + language: lang }, success: function(json) { elgg.add_translation(lang, json); |