diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-02-09 07:29:24 +0000 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-02-09 07:29:24 +0000 |
commit | fa1f49d99a30a029d1a4e09b820c639d639f6283 (patch) | |
tree | 3e4d10b152456f0d5f1a944c66affa3cd94e4b09 /core/helpers/core_theme.php | |
parent | af944f94334139d6b49b9344795652510a62bae0 (diff) |
Adding translation UI. Not backed by any model yet (submissions are ignored).
The code is based on the l10n_client module from Drupal 6, by Gabor Hojtsy (http://drupal.org/user/4166).
Diffstat (limited to 'core/helpers/core_theme.php')
-rw-r--r-- | core/helpers/core_theme.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/helpers/core_theme.php b/core/helpers/core_theme.php index 72e7829e..1e1f08d5 100644 --- a/core/helpers/core_theme.php +++ b/core/helpers/core_theme.php @@ -39,6 +39,14 @@ class core_theme_Core { "</script>"; $buf .= html::script("core/js/fullsize.js"); } + + if (Session::instance()->get("l10n_mode", false)) { + $buf .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . + url::file("core/css/l10n_client.css") . "\" />"; + $buf .= html::script("lib/jquery.cookie.js"); + $buf .= html::script("core/js/l10n_client.js"); + } + return $buf; } @@ -63,10 +71,15 @@ class core_theme_Core { } static function page_bottom($theme) { + $output = ''; + if (Session::instance()->get("l10n_mode", false)) { + $output .= L10n_Client_Controller::l10n_form(); + } if (Session::instance()->get("profiler", false)) { $profiler = new Profiler(); $profiler->render(); } + return $output; } static function admin_page_bottom($theme) { |