summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-10-15 05:10:35 +0000
committerDries Buytaert <dries@buytaert.net>2004-10-15 05:10:35 +0000
commitdfb3c3aec4f6171b814a4055635937e9d7109ab3 (patch)
treece5290a83edccf56eb93a61cf5968777ee078e53 /modules/comment/comment.module
parent6a8e394301c557188e8cd1643b4556eb80dca7b9 (diff)
downloadbrdo-dfb3c3aec4f6171b814a4055635937e9d7109ab3.tar.gz
brdo-dfb3c3aec4f6171b814a4055635937e9d7109ab3.tar.bz2
- Patch #11577 by drumm: changed t('ago') -> t('%time ago', ...) to make it
translatable in languages such as Spanish.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 1fa60180e..1432ae819 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -161,7 +161,7 @@ function comment_block($op = 'list', $delta = 0) {
$result = db_query_range('SELECT * FROM {comments} WHERE status = 0 ORDER BY timestamp DESC', 0, 10);
$items = array();
while ($comment = db_fetch_object($result)) {
- $items[] = l($comment->subject, "node/$comment->nid", NULL, NULL, "comment-$comment->cid") .'<br />'. format_interval(time() - $comment->timestamp) .' '. t('ago');
+ $items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) .'<br />'. t('%time ago', array('%time' => format_interval(time() - $comment->timestamp)));
}
$block['subject'] = t('Recent comments');