diff options
Diffstat (limited to 'modules/comment/views')
-rw-r--r-- | modules/comment/views/admin_block_recent_comments.html.php | 5 | ||||
-rw-r--r-- | modules/comment/views/admin_comments.html.php | 31 | ||||
-rw-r--r-- | modules/comment/views/comment.html.php | 4 | ||||
-rw-r--r-- | modules/comment/views/comments.html.php | 4 |
4 files changed, 25 insertions, 19 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> diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php index b1f0aa97..b9f5148b 100644 --- a/modules/comment/views/admin_comments.html.php +++ b/modules/comment/views/admin_comments.html.php @@ -16,7 +16,7 @@ </script> <div id="gAdminComments"> - <h1> <?= _("Manage Comments") ?> </h1> + <h1> <?= t("Manage Comments") ?> </h1> <div id="gAdminCommentsMenu"> <?= $menu ?> @@ -33,18 +33,22 @@ <? if ($queue == "spam"): ?> <div> <p> - <? printf(_("Gallery has caught %d spam for you since you installed spam filtering."), $spam_caught) ?> + <?= t(array("one" => "Gallery has caught {{count}} spam for you since you installed spam filtering.", + "other" => "Gallery has caught {{count}} spam for you since you installed spam filtering."), + array("count" => $spam_caught)) ?> </p> <p> <? if ($spam->count()): ?> - <? printf(_("There are currently %d comments in your spam queue. You can delete them all with a single click, but there is no undo operation so you may want to check the messages first to make sure that they really are spam."), $spam->count()) ?> + <?= t(array("one" => "There is currently one comment in your spam queue. You can delete it with a single click, but there is no undo operation so you may want to check the message first to make sure that it really is spam.", + "other" => "There are currently {{count}} comments in your spam queue. You can delete them all with a single click, but there is no undo operation so you may want to check the messages first to make sure that they really are spam."), + array("count" => $spam->count())) ?> </p> <p> <a href="<?= url::site("admin/comments/delete_all_spam?csrf=" . access::csrf_token()) ?>"> - <?= _("Delete all spam") ?> + <?= t("Delete all spam") ?> </a> <? else: ?> - <?= _("Your spam queue is empty!") ?> + <?= t("Your spam queue is empty!") ?> <? endif ?> </p> </div> @@ -58,13 +62,13 @@ <table> <tr> <th> - <?= _("Comment") ?> + <?= t("Comment") ?> </th> <th style="width: 100px"> - <?= _("Date") ?> + <?= t("Date") ?> </th> <th> - <?= _("Actions") ?> + <?= t("Actions") ?> </th> </tr> <? foreach ($comments as $comment): ?> @@ -89,7 +93,8 @@ <?= photo::img_dimensions($item->thumb_width, $item->thumb_height, 75) ?> /> </a> - <?= sprintf(_("Comment left on <a href=\"%s\">%s</a>"), $item->url(), $item->title) ?> + <?= t("Comment left on {{item_title}}", + array("item_title" => sprintf("<a href=\"%s\">%s</a>", $item->url(), $item->title))) ?> </div> </td> <td> @@ -100,7 +105,7 @@ <? if ($comment->state != "unpublished"): ?> <li> <a href="javascript:set_state('unpublished',<?=$comment->id?>)"> - <?= _("Unapprove") ?> + <?= t("Unapprove") ?> </a> </li> <? endif ?> @@ -108,7 +113,7 @@ <? if ($comment->state != "published"): ?> <li> <a href="javascript:set_state('published',<?=$comment->id?>)"> - <?= _("Approve") ?> + <?= t("Approve") ?> </a> </li> <? endif ?> @@ -116,14 +121,14 @@ <? if ($comment->state != "spam"): ?> <li> <a href="javascript:set_state('spam',<?=$comment->id?>)"> - <?= _("Spam") ?> + <?= t("Spam") ?> </a> </li> <? endif ?> <li> <a href="javascript:del(<?=$comment->id?>)"> - <?= _("Delete") ?> + <?= t("Delete") ?> </a> </li> </ul> diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php index a87634e9..de0640bd 100644 --- a/modules/comment/views/comment.html.php +++ b/modules/comment/views/comment.html.php @@ -6,8 +6,8 @@ <? //endif ?> <p class="gAuthor"> <a href="#"><img src="<?= $avatar ?>" class="gAvatar" alt="<?= $comment->author ?>" /></a> - <?= _("on ") . date("Y-M-d H:i:s", $comment->created) ?> - <a href="#"><?= $comment->author ?></a> <?= _("said") ?> + <?= t("on ") . date("Y-M-d H:i:s", $comment->created) ?> + <a href="#"><?= $comment->author ?></a> <?= t("said") ?> </p> <div> <?= $comment->text ?> diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php index e34446ac..b28a536e 100644 --- a/modules/comment/views/comments.html.php +++ b/modules/comment/views/comments.html.php @@ -9,8 +9,8 @@ <? //endif ?> <p class="gAuthor"> <a href="#"><img src="<?= $avatar ?>" class="gAvatar" alt="<?= $comment->author ?>" /></a> - <?= _("on ") . date("Y-M-d H:i:s", $comment->created) ?> - <a href="#"><?= $comment->author ?></a> <?= _("said") ?> + <?= t("on ") . date("Y-M-d H:i:s", $comment->created) ?> + <a href="#"><?= $comment->author ?></a> <?= t("said") ?> </p> <div> <?= $comment->text ?> |