From bfd68e80eb57c5ba6deb7016e743b36b0acb5136 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Tue, 8 Jul 2003 11:24:28 +0000 Subject: [PATCH] - Made it easier to translate some text on the tracker page. Patch #71 by Stefan. --- modules/tracker.module | 2 +- modules/tracker/tracker.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tracker.module b/modules/tracker.module index c4c3e9607caf..383bd5edb847 100644 --- a/modules/tracker.module +++ b/modules/tracker.module @@ -47,7 +47,7 @@ function tracker_posts($id = 0) { $comments = array(); while ($comment = db_fetch_object($cresult)) { - $comments[] = "<li>". l($comment->subject, "node/view/$node->nid#$comment->cid") ." ". t("by") ." ". format_name($comment) ." ". (node_is_new($comment->nid, $comment->timestamp) ? theme("theme_mark") : "") ."</li>\n"; + $comments[] = "<li>". t("%subject by %author", array("%subject" => l($comment->subject, "node/view/$node->nid#$comment->cid"), "%author" => format_name($comment))). " ". (node_is_new($comment->nid, $comment->timestamp) ? theme("theme_mark") : "") ."</li>\n"; } if ($comments) { diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index c4c3e9607caf..383bd5edb847 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -47,7 +47,7 @@ function tracker_posts($id = 0) { $comments = array(); while ($comment = db_fetch_object($cresult)) { - $comments[] = "<li>". l($comment->subject, "node/view/$node->nid#$comment->cid") ." ". t("by") ." ". format_name($comment) ." ". (node_is_new($comment->nid, $comment->timestamp) ? theme("theme_mark") : "") ."</li>\n"; + $comments[] = "<li>". t("%subject by %author", array("%subject" => l($comment->subject, "node/view/$node->nid#$comment->cid"), "%author" => format_name($comment))). " ". (node_is_new($comment->nid, $comment->timestamp) ? theme("theme_mark") : "") ."</li>\n"; } if ($comments) { -- GitLab