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. --- .../views/admin_block_recent_comments.html.php | 5 ++-- modules/comment/views/admin_comments.html.php | 31 +++++++++++++--------- modules/comment/views/comment.html.php | 4 +-- modules/comment/views/comments.html.php | 4 +-- 4 files changed, 25 insertions(+), 19 deletions(-) (limited to 'modules/comment/views') 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 @@
  • created) ?> - $comment->author", - "\"" . text::limit_words($comment->text, 50) . "\""); ?> + "$comment->author", + "comment_text" => "\"" . text::limit_words($comment->text, 50) . "\"")); ?>
  • 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 @@
    -

    +

    @@ -33,18 +33,22 @@

    - + "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)) ?>

    count()): ?> - count()) ?> + "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())) ?>

    - + - +

    @@ -58,13 +62,13 @@ @@ -89,7 +93,8 @@ thumb_width, $item->thumb_height, 75) ?> /> - %s"), $item->url(), $item->title) ?> + sprintf("%s", $item->url(), $item->title))) ?>
    - + - + - +
    @@ -100,7 +105,7 @@ state != "unpublished"): ?>
  • - +
  • @@ -108,7 +113,7 @@ state != "published"): ?>
  • - +
  • @@ -116,14 +121,14 @@ state != "spam"): ?>
  • - +
  • - +
  • 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 @@

    <?= $comment->author ?> - created) ?> - author ?> + created) ?> + author ?>

    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 @@

    <?= $comment->author ?> - created) ?> - author ?> + created) ?> + author ?>

    text ?> -- cgit v1.2.3