From a631fe29f3950f8db1f7fb4ce1f47261a9b0feff Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Thu, 8 Jan 2009 17:13:06 +0000 Subject: i18n refactoring: Rename all _() (reserved by gettext) calls to t(). - And refactor printf to our string interpolation / pluralization syntax - Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key. --- core/controllers/admin_themes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/controllers/admin_themes.php') diff --git a/core/controllers/admin_themes.php b/core/controllers/admin_themes.php index 5c9a2ad1..6641221f 100644 --- a/core/controllers/admin_themes.php +++ b/core/controllers/admin_themes.php @@ -26,14 +26,14 @@ class Admin_Themes_Controller extends Admin_Controller { $view->content->active = module::get_var("core", "active_theme"); print $view; } - + public function save() { access::verify_csrf(); $theme = $this->input->post("theme"); if ($theme != module::get_var("core", "active_theme")) { module::set_var("core", "active_theme", $theme); - message::success(_("Updated Theme")); - log::success("graphics", sprintf(_("Changed theme to %s"), $theme)); + message::success(t("Updated Theme")); + log::success("graphics", t("Changed theme to {{theme_name}}", array("theme_name" => $theme))); } url::redirect("admin/themes"); } -- cgit v1.2.3