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/comment/views/admin_block_recent_comments.html.php | |
| 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/comment/views/admin_block_recent_comments.html.php')
| -rw-r--r-- | modules/comment/views/admin_block_recent_comments.html.php | 5 |
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> |
