mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
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.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user