summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-10 05:12:31 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-10 05:12:31 +0000
commitfe5240730a0f281db1ed6ad3be0a3c63c72868bc (patch)
treebb29b5c8478d6022f2faf7fc9b6260ee7cdebf29
parent0b315b6fede54f6ead195ae537da141ba9c85728 (diff)
Show the translation dashboard on admin pages also.
-rw-r--r--core/helpers/core_theme.php23
1 files changed, 17 insertions, 6 deletions
diff --git a/core/helpers/core_theme.php b/core/helpers/core_theme.php
index 1e1f08d5..db40f368 100644
--- a/core/helpers/core_theme.php
+++ b/core/helpers/core_theme.php
@@ -64,22 +64,30 @@ class core_theme_Core {
}
static function admin_head($theme) {
+ $buf = "";
if (Session::instance()->get("debug")) {
- return "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
+ $buf .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
url::file("core/css/debug.css") . "\" />";
}
- }
- static function page_bottom($theme) {
- $output = '';
if (Session::instance()->get("l10n_mode", false)) {
- $output .= L10n_Client_Controller::l10n_form();
+ $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;
+ }
+
+ static function page_bottom($theme) {
if (Session::instance()->get("profiler", false)) {
$profiler = new Profiler();
$profiler->render();
}
- return $output;
+ if (Session::instance()->get("l10n_mode", false)) {
+ return L10n_Client_Controller::l10n_form();
+ }
}
static function admin_page_bottom($theme) {
@@ -87,5 +95,8 @@ class core_theme_Core {
$profiler = new Profiler();
$profiler->render();
}
+ if (Session::instance()->get("l10n_mode", false)) {
+ return L10n_Client_Controller::l10n_form();
+ }
}
} \ No newline at end of file