aboutsummaryrefslogtreecommitdiff
path: root/js/lib/languages.js
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-05-05 05:16:41 +0200
committerSem <sembrestels@riseup.net>2012-05-05 05:16:41 +0200
commit728e903b297d3335c80f93d88e9425004a9d18c5 (patch)
treedb1f4f9feb33c3dbe073f18983f358502f6ad74a /js/lib/languages.js
parent848038cef6f28cd3e3744825ff806709009325fe (diff)
downloadelgg-728e903b297d3335c80f93d88e9425004a9d18c5.tar.gz
elgg-728e903b297d3335c80f93d88e9425004a9d18c5.tar.bz2
Fixed javascript language.
Diffstat (limited to 'js/lib/languages.js')
-rw-r--r--js/lib/languages.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/languages.js b/js/lib/languages.js
index bfa858364..439df3e27 100644
--- a/js/lib/languages.js
+++ b/js/lib/languages.js
@@ -4,7 +4,7 @@
*/
elgg.provide('elgg.config.translations');
-elgg.config.language = 'en';
+elgg.config.language = "<?php echo elgg_get_config('language'); ?>" || 'en';
/**
* Analagous to the php version. Merges translations for a
@@ -94,4 +94,4 @@ elgg.config.translations.init = function() {
elgg.reload_all_translations();
};
-elgg.register_hook_handler('boot', 'system', elgg.config.translations.init); \ No newline at end of file
+elgg.register_hook_handler('boot', 'system', elgg.config.translations.init);