diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-01-08 17:13:06 +0000 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-01-08 17:13:06 +0000 |
commit | a631fe29f3950f8db1f7fb4ce1f47261a9b0feff (patch) | |
tree | b5af3ad39362dea97ce01be63d5ec09b7846bb9c /modules/watermark/controllers | |
parent | fd081159f1783918d81e355e25e262ccc5249913 (diff) |
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.
Diffstat (limited to 'modules/watermark/controllers')
-rw-r--r-- | modules/watermark/controllers/admin_watermarks.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/watermark/controllers/admin_watermarks.php b/modules/watermark/controllers/admin_watermarks.php index 6d552dae..54ee71b5 100644 --- a/modules/watermark/controllers/admin_watermarks.php +++ b/modules/watermark/controllers/admin_watermarks.php @@ -44,8 +44,8 @@ class Admin_Watermarks_Controller extends Admin_Controller { module::set_var("watermark", "transparency", $form->edit_watermark->transparency->value); $this->_update_graphics_rules(); - log::success("watermark", _("Watermark changed")); - message::success(_("Watermark changed")); + log::success("watermark", t("Watermark changed")); + message::success(t("Watermark changed")); print json_encode( array("result" => "success", "location" => url::site("admin/watermarks"))); @@ -73,8 +73,8 @@ class Admin_Watermarks_Controller extends Admin_Controller { module::clear_var("watermark", "position"); $this->_update_graphics_rules(); - log::success("watermark", _("Watermark deleted")); - message::success(_("Watermark deleted")); + log::success("watermark", t("Watermark deleted")); + message::success(t("Watermark deleted")); } print json_encode( array("result" => "success", @@ -100,7 +100,7 @@ class Admin_Watermarks_Controller extends Admin_Controller { if (!($image_info = getimagesize($file)) || !in_array($image_info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG))) { - message::error(_("Unable to identify this image file")); + message::error(t("Unable to identify this image file")); @unlink($file); return; } @@ -115,8 +115,8 @@ class Admin_Watermarks_Controller extends Admin_Controller { $this->_update_graphics_rules(); @unlink($file); - message::success(_("Watermark saved")); - log::success("watermark", _("Watermark saved")); + message::success(t("Watermark saved")); + log::success("watermark", t("Watermark saved")); print json_encode( array("result" => "success", "location" => url::site("admin/watermarks"))); |