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_modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/controllers/admin_modules.php') diff --git a/core/controllers/admin_modules.php b/core/controllers/admin_modules.php index c416a699..e345f8c6 100644 --- a/core/controllers/admin_modules.php +++ b/core/controllers/admin_modules.php @@ -34,10 +34,10 @@ class Admin_Modules_Controller extends Admin_Controller { $desired = $this->input->post($module_name) == 1; if ($info->installed && !$desired) { module::uninstall($module_name); - message::success(sprintf(_("Uninstalled %s module"), $info->name)); + message::success(t("Uninstalled {{module_name}} module", array("module_name" => $info->name))); } else if (!$info->installed && $desired) { module::install($module_name); - message::success(sprintf(_("Installed %s module"), $info->name)); + message::success(t("Installed {{module_name}} module", array("module_name" => $info->name))); } } url::redirect("admin/modules"); -- cgit v1.2.3