summaryrefslogtreecommitdiff
path: root/modules/comment/views/admin_block_recent_comments.html.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-01-08 17:13:06 +0000
committerAndy Staudacher <andy.st@gmail.com>2009-01-08 17:13:06 +0000
commita631fe29f3950f8db1f7fb4ce1f47261a9b0feff (patch)
treeb5af3ad39362dea97ce01be63d5ec09b7846bb9c /modules/comment/views/admin_block_recent_comments.html.php
parentfd081159f1783918d81e355e25e262ccc5249913 (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/comment/views/admin_block_recent_comments.html.php')
-rw-r--r--modules/comment/views/admin_block_recent_comments.html.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/comment/views/admin_block_recent_comments.html.php b/modules/comment/views/admin_block_recent_comments.html.php
index 6829d74b..2d753bd7 100644
--- a/modules/comment/views/admin_block_recent_comments.html.php
+++ b/modules/comment/views/admin_block_recent_comments.html.php
@@ -3,8 +3,9 @@
<? foreach ($comments as $comment): ?>
<li>
<?= date("Y-M-d H:i:s", $comment->created) ?>
- <? printf(_("%s said %s"), "<a href=\"#\">$comment->author</a>",
- "<i>\"" . text::limit_words($comment->text, 50) . "\"</i>"); ?>
+ <?= t("{{author_name}} said {{comment_text}}",
+ array("author_name" => "<a href=\"#\">$comment->author</a>",
+ "comment_text" => "<i>\"" . text::limit_words($comment->text, 50) . "\"</i>")); ?>
</li>
<? endforeach ?>
</ul>