diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/js/languages.php | 16 | ||||
-rw-r--r-- | views/default/js/languages/en.php | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/views/default/js/languages.php b/views/default/js/languages.php index 34367aaf1..009e8159c 100644 --- a/views/default/js/languages.php +++ b/views/default/js/languages.php @@ -1,9 +1,9 @@ -<?php
-/**
- * @uses $vars['language']
- */
-global $CONFIG;
-
-$language = $vars['language'];
-
+<?php +/** + * @uses $vars['language'] + */ +global $CONFIG; + +$language = $vars['language']; + echo json_encode($CONFIG->translations[$language]);
\ No newline at end of file diff --git a/views/default/js/languages/en.php b/views/default/js/languages/en.php index afcf4bb7f..8a604cc12 100644 --- a/views/default/js/languages/en.php +++ b/views/default/js/languages/en.php @@ -1,2 +1,2 @@ -<?php
+<?php echo elgg_view('js/languages', array('language' => 'en'));
\ No newline at end of file |