aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/elgglib.js2
-rw-r--r--js/lib/languages.js7
2 files changed, 4 insertions, 5 deletions
diff --git a/js/lib/elgglib.js b/js/lib/elgglib.js
index 5ba80fc06..f2545fb6c 100644
--- a/js/lib/elgglib.js
+++ b/js/lib/elgglib.js
@@ -379,4 +379,4 @@ elgg.getSelectorFromUrlFragment = function(url) {
}
}
return '';
-} \ No newline at end of file
+}; \ No newline at end of file
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);