Skip to content
Snippets Groups Projects
Commit bfd68e80 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Made it easier to translate some text on the tracker page.  Patch #71 by
  Stefan.
parent 12506d83
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -47,7 +47,7 @@ function tracker_posts($id = 0) { ...@@ -47,7 +47,7 @@ function tracker_posts($id = 0) {
$comments = array(); $comments = array();
while ($comment = db_fetch_object($cresult)) { 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) { if ($comments) {
......
...@@ -47,7 +47,7 @@ function tracker_posts($id = 0) { ...@@ -47,7 +47,7 @@ function tracker_posts($id = 0) {
$comments = array(); $comments = array();
while ($comment = db_fetch_object($cresult)) { 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) { if ($comments) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment