diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-06-22 20:57:07 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-06-22 20:57:07 +0200 |
commit | 58907e0bffb5a7d2d0bfc05cec28f366432bb3e8 (patch) | |
tree | d0567e509e8769d2b1363af45c1b48cf18563715 /web/template/pkg_comments.php | |
parent | adbb59308024bfb6386eaa4a9d1a2eb6591b8456 (diff) | |
download | aur-58907e0bffb5a7d2d0bfc05cec28f366432bb3e8.tar.gz aur-58907e0bffb5a7d2d0bfc05cec28f366432bb3e8.tar.xz |
use php's gettext modulegettext
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'web/template/pkg_comments.php')
-rw-r--r-- | web/template/pkg_comments.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index aed9ca8b..f62308d6 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -8,7 +8,7 @@ while (list($indx, $carr) = each($comments)) { ?> $carr['UserName'] = "<a href=\"account.php?Action=AccountInfo&ID={$carr['UsersID']}\">{$carr['UserName']}</a>"; } - $commentHeader = '<p style="display:inline;">' . __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])) . '</p>'; + $commentHeader = '<p style="display:inline;">' . sprintf(_('Comment by: %s on %s'), $carr['UserName'], gmdate('r', $carr['CommentTS'])) . '</p>'; if (canDeleteCommentArray($carr, $atype, $uid)) { $durl = '<form method="post" action="packages.php?ID='.$row['ID'].'">'; @@ -16,7 +16,7 @@ while (list($indx, $carr) = each($comments)) { ?> $durl.= '<input type="hidden" name="action" value="do_DeleteComment" />'; $durl.= '<input type="hidden" name="comment_id" value="'.$carr['ID'].'" />'; $durl.= '<input type="image" src="images/x.png" '; - $durl.= ' alt="'.__("Delete comment").'" name="submit" value="1" '; + $durl.= ' alt="'._("Delete comment").'" name="submit" value="1" '; $durl.= ' /> '; $durl.= '</fieldset>'; @@ -39,7 +39,7 @@ while (list($indx, $carr) = each($comments)) { ?> $count = package_comments_count($_GET['ID']); if ($count > 10 && !isset($_GET['comments'])) { echo '<div class="pgbox">'; - echo '<a href="'. $_SERVER['REQUEST_URI'] . '&comments=all">'. __('Show all %s comments', $count) . '</a>'; + echo '<a href="'. $_SERVER['REQUEST_URI'] . '&comments=all">'. sprintf(_('Show all %s comments'), $count) . '</a>'; echo '</div>'; } ?> |