From fa1f49d99a30a029d1a4e09b820c639d639f6283 Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Mon, 9 Feb 2009 07:29:24 +0000 Subject: 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). --- core/helpers/core_theme.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'core/helpers') 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 { ""; $buf .= html::script("core/js/fullsize.js"); } + + if (Session::instance()->get("l10n_mode", false)) { + $buf .= ""; + $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) { -- cgit v1.2.3