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. --- modules/info/helpers/info_block.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/info/helpers') diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php index 422e62da..358dd3b8 100644 --- a/modules/info/helpers/info_block.php +++ b/modules/info/helpers/info_block.php @@ -22,7 +22,7 @@ class info_block_Core { if ($theme->item()) { $block = new Block(); $block->id = "gMetadata"; - $block->title = _("Item Info"); + $block->title = t("Item Info"); $block->content = new View("info_block.html"); return $block; } @@ -32,12 +32,12 @@ class info_block_Core { $results = ""; if ($item->view_count) { $results .= "
  • "; - $results .= sprintf(_("Views: %d"), $item->view_count); + $results .= t("Views: {{view_count}}", array("view_count" => $item->view_count)); $results .= "
  • "; } if ($item->owner) { $results .= "
  • "; - $results .= sprintf(_("By: %s"), "{$item->owner->name}"); + $results .= t("By: {{owner_name}}", array("owner_name" => "{$item->owner->name}")); $results .= "
  • "; } return $results; -- cgit v1.2.3