From 47daf7f00649956aed14dc4e6aa2145bb4c87b2a Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sat, 12 Jan 2002 12:51:21 +0000 Subject: [PATCH] - Added some more explanations. --- modules/blog.module | 14 +++++++------- modules/blog/blog.module | 14 +++++++------- modules/book.module | 12 ++++++------ modules/book/book.module | 12 ++++++------ modules/calendar.module | 2 +- modules/cvs.module | 2 +- modules/forum.module | 2 +- modules/forum/forum.module | 2 +- modules/rating.module | 2 +- modules/tracker.module | 6 +++--- modules/tracker/tracker.module | 6 +++--- modules/user.module | 2 +- modules/user/user.module | 2 +- 13 files changed, 39 insertions(+), 39 deletions(-) diff --git a/modules/blog.module b/modules/blog.module index b3c1081e0485..04dcea472e4e 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -179,7 +179,7 @@ function blog_page_user($uid = 0, $date = 0) { } if ($blog->comment) { - $links[] = "<a href=\"node.php?id=$blog->nid\" title=\"". t("View this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>"; + $links[] = "<a href=\"node.php?id=$blog->nid\" title=\"". t("Read this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>"; } $output .= "<tr><td><div style=\"margin-left: 20px;\"><b>". check_output($blog->title) ."</b></div></td><td align=\"right\">". $theme->links($links) ."</td></tr>"; @@ -188,7 +188,7 @@ function blog_page_user($uid = 0, $date = 0) { } $output .= "</table>"; - $output .= "<a href=\"module.php?mod=blog&op=feed&id=$account->uid\" title=\"". t("View the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n"; + $output .= "<a href=\"module.php?mod=blog&op=feed&id=$account->uid\" title=\"". t("Read the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n"; $theme->box(sprintf(t("%s's blog"), $account->name), $output, "main"); } @@ -225,7 +225,7 @@ function blog_page_last() { } $output .= "</table>"; - $output .= "<a href=\"module.php?mod=blog&op=feed\" title=\"". t("View the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n"; + $output .= "<a href=\"module.php?mod=blog&op=feed\" title=\"". t("Read the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n"; $theme->box(t("User blogs"), $output, "main"); } @@ -311,17 +311,17 @@ function blog_link($type, $node = 0) { global $user; if ($type == "page" && user_access("access content")) { - $links[] = "<a href=\"module.php?mod=blog\" title=\"". t("View the latest blog entries in chronological order.") ."\">". t("user blogs") ."</a>"; + $links[] = "<a href=\"module.php?mod=blog\" title=\"". t("Read the latest blog entries.") ."\">". t("user blogs") ."</a>"; } if ($type == "menu") { $links[] = "<a href=\"module.php?mod=node&op=add&type=blog\" title=\"". t("Post a new entry to your personal blog.") ."\">". t("add blog entry") ."</a>"; - $links[] = "<a href=\"module.php?mod=blog&op=view&id=$user->uid\" title=\"". t("View your latest blog entries in chronological order.") ."\">". t("view your blog") ."</a>"; + $links[] = "<a href=\"module.php?mod=blog&op=view&id=$user->uid\" title=\"". t("Read your latest blog entries.") ."\">". t("view your blog") ."</a>"; } if ($type == "node" && $node->type == "blog") { if (blog_access("update", $node)) { - $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Update this blog entry.") ."\">". t("update this blog") ."</a>"; + $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Edit this blog entry.") ."\">". t("edit this blog") ."</a>"; } else { $links[] = "<a href=\"module.php?mod=blog&op=view&id=$node->uid\" title=\"". sprintf(t("Read %s's latest blog entries."), $node->name) ."\">". strtr(t("%a's blog"), array("%a" => $node->name)) ."</a>"; @@ -340,7 +340,7 @@ function blog_block() { $output .= "<a href=\"node.php?id=$node->nid\">". check_output($node->title) ."</a><br />\n"; } - $output .= "<br /><div align=\"right\"><a href=\"module.php?mod=blog\" title=\"". t("View the latest blog entries in chronological order.") ."\">". t("more") ."</a></div>"; + $output .= "<br /><div align=\"right\"><a href=\"module.php?mod=blog\" title=\"". t("Read the latest blog entries.") ."\">". t("more") ."</a></div>"; $block[0]["subject"] = t("User blogs"); $block[0]["content"] = $output; diff --git a/modules/blog/blog.module b/modules/blog/blog.module index b3c1081e0485..04dcea472e4e 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -179,7 +179,7 @@ function blog_page_user($uid = 0, $date = 0) { } if ($blog->comment) { - $links[] = "<a href=\"node.php?id=$blog->nid\" title=\"". t("View this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>"; + $links[] = "<a href=\"node.php?id=$blog->nid\" title=\"". t("Read this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) ."</a>"; } $output .= "<tr><td><div style=\"margin-left: 20px;\"><b>". check_output($blog->title) ."</b></div></td><td align=\"right\">". $theme->links($links) ."</td></tr>"; @@ -188,7 +188,7 @@ function blog_page_user($uid = 0, $date = 0) { } $output .= "</table>"; - $output .= "<a href=\"module.php?mod=blog&op=feed&id=$account->uid\" title=\"". t("View the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n"; + $output .= "<a href=\"module.php?mod=blog&op=feed&id=$account->uid\" title=\"". t("Read the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n"; $theme->box(sprintf(t("%s's blog"), $account->name), $output, "main"); } @@ -225,7 +225,7 @@ function blog_page_last() { } $output .= "</table>"; - $output .= "<a href=\"module.php?mod=blog&op=feed\" title=\"". t("View the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n"; + $output .= "<a href=\"module.php?mod=blog&op=feed\" title=\"". t("Read the XML version of this page.") ."\"><img src=\"". $theme->image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" /></a>\n"; $theme->box(t("User blogs"), $output, "main"); } @@ -311,17 +311,17 @@ function blog_link($type, $node = 0) { global $user; if ($type == "page" && user_access("access content")) { - $links[] = "<a href=\"module.php?mod=blog\" title=\"". t("View the latest blog entries in chronological order.") ."\">". t("user blogs") ."</a>"; + $links[] = "<a href=\"module.php?mod=blog\" title=\"". t("Read the latest blog entries.") ."\">". t("user blogs") ."</a>"; } if ($type == "menu") { $links[] = "<a href=\"module.php?mod=node&op=add&type=blog\" title=\"". t("Post a new entry to your personal blog.") ."\">". t("add blog entry") ."</a>"; - $links[] = "<a href=\"module.php?mod=blog&op=view&id=$user->uid\" title=\"". t("View your latest blog entries in chronological order.") ."\">". t("view your blog") ."</a>"; + $links[] = "<a href=\"module.php?mod=blog&op=view&id=$user->uid\" title=\"". t("Read your latest blog entries.") ."\">". t("view your blog") ."</a>"; } if ($type == "node" && $node->type == "blog") { if (blog_access("update", $node)) { - $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Update this blog entry.") ."\">". t("update this blog") ."</a>"; + $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Edit this blog entry.") ."\">". t("edit this blog") ."</a>"; } else { $links[] = "<a href=\"module.php?mod=blog&op=view&id=$node->uid\" title=\"". sprintf(t("Read %s's latest blog entries."), $node->name) ."\">". strtr(t("%a's blog"), array("%a" => $node->name)) ."</a>"; @@ -340,7 +340,7 @@ function blog_block() { $output .= "<a href=\"node.php?id=$node->nid\">". check_output($node->title) ."</a><br />\n"; } - $output .= "<br /><div align=\"right\"><a href=\"module.php?mod=blog\" title=\"". t("View the latest blog entries in chronological order.") ."\">". t("more") ."</a></div>"; + $output .= "<br /><div align=\"right\"><a href=\"module.php?mod=blog\" title=\"". t("Read the latest blog entries.") ."\">". t("more") ."</a></div>"; $block[0]["subject"] = t("User blogs"); $block[0]["content"] = $output; diff --git a/modules/book.module b/modules/book.module index 8a8464bb2632..7bcb0d2efea7 100644 --- a/modules/book.module +++ b/modules/book.module @@ -82,9 +82,9 @@ function book_save($op, $node) { /* ** If a node administrator updates a book page, we don't create a ** new revision unless we are explicitly instructed to. If a node - ** administrator updates a book page using the "update this book - ** page"-link (like regular users do) then he'll be treated as a - ** regular user. + ** administrator updates a book page using the "edit this page" + ** link (like regular users do) then he'll be treated as a regular + ** user. */ return array("format", "parent", "weight"); @@ -103,7 +103,7 @@ function book_link($type, $node = 0, $main = 0) { } if ($type == "node" && $node->type == "book" && book_access("update", $node)) { - $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("update this book page") ."</a>"; + $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("edit this page") ."</a>"; } return $links ? $links : array(); @@ -136,7 +136,7 @@ function book_load($node) { /* ** We set the revision field to indicate that we have to create ** a new revision when updating this book page. We enable this - ** always such that the "update this book page"-links appear. + ** always such that the "edit this page"-links appear. */ $book->revision = 1; @@ -402,7 +402,7 @@ function book_view($node, $main = 0) { $output .= " <tr><td colspan=\"3\"><hr /></td></tr>"; $output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<a href=\"node.php?id=$prev->nid\" title=\"". t("View the previous page in this book.") ."\">". t("previous") ."</a>" : t("previous")) ."</td><td align=\"center\" width=\"34%\"><a href=\"module.php?mod=book\" title=\"". t("View this book's table of contents.") ."\">index</a></td><td align=\"right\" width=\"33%\">". ($next ? "<a href=\"node.php?id=$next->nid\" title=\"". t("View the next page in this book.") ."\">". t("next") ."</a>" : t("next")) ."</td></tr>"; - $output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<small>". check_output($prev->title) ."</small>" : " ") ."</td><td align=\"center\" width=\"34%\">". ($node->parent ? "<a href=\"node.php?id=$node->parent\" title=\"". t("View the parent section.") ."\">". t("up") ."</a>" : t("up")) ."</td><td align=\"right\" width=\"33%\">". ($next ? "<small>". check_output($next->title) ."</small>" : " ") ."</td></tr>"; + $output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<small>". check_output($prev->title) ."</small>" : " ") ."</td><td align=\"center\" width=\"34%\">". ($node->parent ? "<a href=\"node.php?id=$node->parent\" title=\"". t("View this page's parent section.") ."\">". t("up") ."</a>" : t("up")) ."</td><td align=\"right\" width=\"33%\">". ($next ? "<small>". check_output($next->title) ."</small>" : " ") ."</td></tr>"; $output .= " <tr><td colspan=\"3\"><hr /></td></tr>"; $output .= " <tr><td colspan=\"3\" align=\"right\"><div style=\"margin: 10 10 10 10;\">". $theme->links(link_node($node, $main)) ."</div></td></tr>"; $output .= "</table>"; diff --git a/modules/book/book.module b/modules/book/book.module index 8a8464bb2632..7bcb0d2efea7 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -82,9 +82,9 @@ function book_save($op, $node) { /* ** If a node administrator updates a book page, we don't create a ** new revision unless we are explicitly instructed to. If a node - ** administrator updates a book page using the "update this book - ** page"-link (like regular users do) then he'll be treated as a - ** regular user. + ** administrator updates a book page using the "edit this page" + ** link (like regular users do) then he'll be treated as a regular + ** user. */ return array("format", "parent", "weight"); @@ -103,7 +103,7 @@ function book_link($type, $node = 0, $main = 0) { } if ($type == "node" && $node->type == "book" && book_access("update", $node)) { - $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("update this book page") ."</a>"; + $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("edit this page") ."</a>"; } return $links ? $links : array(); @@ -136,7 +136,7 @@ function book_load($node) { /* ** We set the revision field to indicate that we have to create ** a new revision when updating this book page. We enable this - ** always such that the "update this book page"-links appear. + ** always such that the "edit this page"-links appear. */ $book->revision = 1; @@ -402,7 +402,7 @@ function book_view($node, $main = 0) { $output .= " <tr><td colspan=\"3\"><hr /></td></tr>"; $output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<a href=\"node.php?id=$prev->nid\" title=\"". t("View the previous page in this book.") ."\">". t("previous") ."</a>" : t("previous")) ."</td><td align=\"center\" width=\"34%\"><a href=\"module.php?mod=book\" title=\"". t("View this book's table of contents.") ."\">index</a></td><td align=\"right\" width=\"33%\">". ($next ? "<a href=\"node.php?id=$next->nid\" title=\"". t("View the next page in this book.") ."\">". t("next") ."</a>" : t("next")) ."</td></tr>"; - $output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<small>". check_output($prev->title) ."</small>" : " ") ."</td><td align=\"center\" width=\"34%\">". ($node->parent ? "<a href=\"node.php?id=$node->parent\" title=\"". t("View the parent section.") ."\">". t("up") ."</a>" : t("up")) ."</td><td align=\"right\" width=\"33%\">". ($next ? "<small>". check_output($next->title) ."</small>" : " ") ."</td></tr>"; + $output .= " <tr><td align=\"left\" width=\"33%\">". ($prev ? "<small>". check_output($prev->title) ."</small>" : " ") ."</td><td align=\"center\" width=\"34%\">". ($node->parent ? "<a href=\"node.php?id=$node->parent\" title=\"". t("View this page's parent section.") ."\">". t("up") ."</a>" : t("up")) ."</td><td align=\"right\" width=\"33%\">". ($next ? "<small>". check_output($next->title) ."</small>" : " ") ."</td></tr>"; $output .= " <tr><td colspan=\"3\"><hr /></td></tr>"; $output .= " <tr><td colspan=\"3\" align=\"right\"><div style=\"margin: 10 10 10 10;\">". $theme->links(link_node($node, $main)) ."</div></td></tr>"; $output .= "</table>"; diff --git a/modules/calendar.module b/modules/calendar.module index 3431ab7433fd..cffacdec9cf0 100644 --- a/modules/calendar.module +++ b/modules/calendar.module @@ -103,7 +103,7 @@ function calendar_block() { function calendar_link($type) { if ($type == "page" && user_access("access content")) { - $links[] = "<a href=\"module.php?mod=calendar\" title=\"". t("Check the archives for older content.") ."\">archives</a>"; + $links[] = "<a href=\"module.php?mod=calendar\" title=\"". t("Read the older content in our archive.") ."\">archives</a>"; } return $links ? $links : array(); diff --git a/modules/cvs.module b/modules/cvs.module index 612a5fdaa85e..ca739fe51e7f 100644 --- a/modules/cvs.module +++ b/modules/cvs.module @@ -7,7 +7,7 @@ function cvs_perm() { function cvs_link($type) { if ($type == "page" && user_access("access cvs messages")) { - $links[] = "<a href=\"module.php?mod=cvs\">" . t("cvs messages") . "</a>"; + $links[] = "<a href=\"module.php?mod=cvs\" title=\"". t("Read the recent CVS log messages.") ."\">" . t("cvs messages") . "</a>"; } return $links ? $links : array(); diff --git a/modules/forum.module b/modules/forum.module index 8086a88267b2..139f04dd76fb 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -35,7 +35,7 @@ function forum_save($op, $node) { function forum_link($type) { if ($type == "page" && user_access("access content")) { - $links[] = "<a href=\"module.php?mod=forum\">". t("forum") ."</a>"; + $links[] = "<a href=\"module.php?mod=forum\" title=\"". t("Read and participate in the discussion forums.") ."\">". t("forum") ."</a>"; } return $links ? $links : array(); diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 8086a88267b2..139f04dd76fb 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -35,7 +35,7 @@ function forum_save($op, $node) { function forum_link($type) { if ($type == "page" && user_access("access content")) { - $links[] = "<a href=\"module.php?mod=forum\">". t("forum") ."</a>"; + $links[] = "<a href=\"module.php?mod=forum\" title=\"". t("Read and participate in the discussion forums.") ."\">". t("forum") ."</a>"; } return $links ? $links : array(); diff --git a/modules/rating.module b/modules/rating.module index 91228dbd38fb..ad07e30ed226 100644 --- a/modules/rating.module +++ b/modules/rating.module @@ -14,7 +14,7 @@ function rating_perm() { function rating_link($type) { if ($type == "page" && user_access("access user ratings")) { - $links[] = "<a href=\"module.php?mod=rating\">". t("user ratings") ."</a>"; + $links[] = "<a href=\"module.php?mod=rating\" title=\"". t("Display an overview of the user ratings.") ."\">". t("user ratings") ."</a>"; } return $links ? $links : array(); diff --git a/modules/tracker.module b/modules/tracker.module index 4234f4786267..0735f107a03e 100644 --- a/modules/tracker.module +++ b/modules/tracker.module @@ -4,7 +4,7 @@ function tracker_link($type) { if ($type == "menu") { - $links[] = "<a href=\"module.php?mod=tracker\">". t("recent comments") ."</a>"; + $links[] = "<a href=\"module.php?mod=tracker\" title=\"". t("Display an overview of the recent comments.") ."\">". t("recent comments") ."</a>"; } return $links ? $links : array(); @@ -45,8 +45,8 @@ function tracker_comments($id = 0) { function tracker_menu() { global $user; - $links[] = "<a href=\"module.php?mod=tracker&id=$user->uid\">your recent comments</a>"; - $links[] = "<a href=\"module.php?mod=tracker\">all recent comments</a>"; + $links[] = "<a href=\"module.php?mod=tracker&id=$user->uid\" title=\"". t("Display an overview of your recent comments.") ."\">your recent comments</a>"; + $links[] = "<a href=\"module.php?mod=tracker\" title=\"". t("Display an overview of all the recent comments.") ."\">all recent comments</a>"; return "<div align=\"center\">". implode(" · ", $links) ."</div>"; } diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index 4234f4786267..0735f107a03e 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -4,7 +4,7 @@ function tracker_link($type) { if ($type == "menu") { - $links[] = "<a href=\"module.php?mod=tracker\">". t("recent comments") ."</a>"; + $links[] = "<a href=\"module.php?mod=tracker\" title=\"". t("Display an overview of the recent comments.") ."\">". t("recent comments") ."</a>"; } return $links ? $links : array(); @@ -45,8 +45,8 @@ function tracker_comments($id = 0) { function tracker_menu() { global $user; - $links[] = "<a href=\"module.php?mod=tracker&id=$user->uid\">your recent comments</a>"; - $links[] = "<a href=\"module.php?mod=tracker\">all recent comments</a>"; + $links[] = "<a href=\"module.php?mod=tracker&id=$user->uid\" title=\"". t("Display an overview of your recent comments.") ."\">your recent comments</a>"; + $links[] = "<a href=\"module.php?mod=tracker\" title=\"". t("Display an overview of all the recent comments.") ."\">all recent comments</a>"; return "<div align=\"center\">". implode(" · ", $links) ."</div>"; } diff --git a/modules/user.module b/modules/user.module index 673f2bf3f6bc..a182f4eb9da1 100644 --- a/modules/user.module +++ b/modules/user.module @@ -422,7 +422,7 @@ function user_search($keys) { function user_link($type) { if ($type == "page") { - $links[] = "<a href=\"module.php?mod=user\" title=\"". t("Create a user account, e-mail a new password or edit your account settings.") ."\">". t("user account") ."</a>"; + $links[] = "<a href=\"module.php?mod=user\" title=\"". t("Create a user account, request a new password or edit your account settings.") ."\">". t("user account") ."</a>"; } if ($type == "menu") { diff --git a/modules/user/user.module b/modules/user/user.module index 673f2bf3f6bc..a182f4eb9da1 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -422,7 +422,7 @@ function user_search($keys) { function user_link($type) { if ($type == "page") { - $links[] = "<a href=\"module.php?mod=user\" title=\"". t("Create a user account, e-mail a new password or edit your account settings.") ."\">". t("user account") ."</a>"; + $links[] = "<a href=\"module.php?mod=user\" title=\"". t("Create a user account, request a new password or edit your account settings.") ."\">". t("user account") ."</a>"; } if ($type == "menu") { -- GitLab