From dfb3c3aec4f6171b814a4055635937e9d7109ab3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 15 Oct 2004 05:10:35 +0000 Subject: - Patch #11577 by drumm: changed t('ago') -> t('%time ago', ...) to make it translatable in languages such as Spanish. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/comment.module') 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") .'
'. format_interval(time() - $comment->timestamp) .' '. t('ago'); + $items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) .'
'. t('%time ago', array('%time' => format_interval(time() - $comment->timestamp))); } $block['subject'] = t('Recent comments'); -- cgit v1.2.3