From 47daf7f00649956aed14dc4e6aa2145bb4c87b2a Mon Sep 17 00:00:00 2001 From: Dries Buytaert 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 b3c1081e048..04dcea472e4 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[] = "nid\" title=\"". t("View this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; + $links[] = "nid\" title=\"". t("Read this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; } $output .= "
". check_output($blog->title) ."
". $theme->links($links) .""; @@ -188,7 +188,7 @@ function blog_page_user($uid = 0, $date = 0) { } $output .= ""; - $output .= "uid\" title=\"". t("View the XML version of this page.") ."\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\n"; + $output .= "uid\" title=\"". t("Read the XML version of this page.") ."\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\n"; $theme->box(sprintf(t("%s's blog"), $account->name), $output, "main"); } @@ -225,7 +225,7 @@ function blog_page_last() { } $output .= ""; - $output .= "image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\n"; + $output .= "image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\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[] = "". t("user blogs") .""; + $links[] = "". t("user blogs") .""; } if ($type == "menu") { $links[] = "". t("add blog entry") .""; - $links[] = "uid\" title=\"". t("View your latest blog entries in chronological order.") ."\">". t("view your blog") .""; + $links[] = "uid\" title=\"". t("Read your latest blog entries.") ."\">". t("view your blog") .""; } if ($type == "node" && $node->type == "blog") { if (blog_access("update", $node)) { - $links[] = "nid\" title=\"". t("Update this blog entry.") ."\">". t("update this blog") .""; + $links[] = "nid\" title=\"". t("Edit this blog entry.") ."\">". t("edit this blog") .""; } else { $links[] = "uid\" title=\"". sprintf(t("Read %s's latest blog entries."), $node->name) ."\">". strtr(t("%a's blog"), array("%a" => $node->name)) .""; @@ -340,7 +340,7 @@ function blog_block() { $output .= "nid\">". check_output($node->title) ."
\n"; } - $output .= "
". t("more") ."
"; + $output .= "
". t("more") ."
"; $block[0]["subject"] = t("User blogs"); $block[0]["content"] = $output; diff --git a/modules/blog/blog.module b/modules/blog/blog.module index b3c1081e048..04dcea472e4 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[] = "nid\" title=\"". t("View this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; + $links[] = "nid\" title=\"". t("Read this posting and all of its comments.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; } $output .= "
". check_output($blog->title) ."
". $theme->links($links) .""; @@ -188,7 +188,7 @@ function blog_page_user($uid = 0, $date = 0) { } $output .= ""; - $output .= "uid\" title=\"". t("View the XML version of this page.") ."\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\n"; + $output .= "uid\" title=\"". t("Read the XML version of this page.") ."\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\n"; $theme->box(sprintf(t("%s's blog"), $account->name), $output, "main"); } @@ -225,7 +225,7 @@ function blog_page_last() { } $output .= ""; - $output .= "image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\n"; + $output .= "image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\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[] = "". t("user blogs") .""; + $links[] = "". t("user blogs") .""; } if ($type == "menu") { $links[] = "". t("add blog entry") .""; - $links[] = "uid\" title=\"". t("View your latest blog entries in chronological order.") ."\">". t("view your blog") .""; + $links[] = "uid\" title=\"". t("Read your latest blog entries.") ."\">". t("view your blog") .""; } if ($type == "node" && $node->type == "blog") { if (blog_access("update", $node)) { - $links[] = "nid\" title=\"". t("Update this blog entry.") ."\">". t("update this blog") .""; + $links[] = "nid\" title=\"". t("Edit this blog entry.") ."\">". t("edit this blog") .""; } else { $links[] = "uid\" title=\"". sprintf(t("Read %s's latest blog entries."), $node->name) ."\">". strtr(t("%a's blog"), array("%a" => $node->name)) .""; @@ -340,7 +340,7 @@ function blog_block() { $output .= "nid\">". check_output($node->title) ."
\n"; } - $output .= "
". t("more") ."
"; + $output .= "
". t("more") ."
"; $block[0]["subject"] = t("User blogs"); $block[0]["content"] = $output; diff --git a/modules/book.module b/modules/book.module index 8a8464bb263..7bcb0d2efea 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[] = "nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("update this book page") .""; + $links[] = "nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("edit this page") .""; } 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 .= "
"; $output .= " ". ($prev ? "nid\" title=\"". t("View the previous page in this book.") ."\">". t("previous") ."" : t("previous")) ."index". ($next ? "nid\" title=\"". t("View the next page in this book.") ."\">". t("next") ."" : t("next")) .""; - $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? "parent\" title=\"". t("View the parent section.") ."\">". t("up") ."" : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; + $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? "parent\" title=\"". t("View this page's parent section.") ."\">". t("up") ."" : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; $output .= "
"; $output .= "
". $theme->links(link_node($node, $main)) ."
"; $output .= ""; diff --git a/modules/book/book.module b/modules/book/book.module index 8a8464bb263..7bcb0d2efea 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[] = "nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("update this book page") .""; + $links[] = "nid\" title=\"". t("Suggest an update for this book page.") ."\">". t("edit this page") .""; } 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 .= "
"; $output .= " ". ($prev ? "nid\" title=\"". t("View the previous page in this book.") ."\">". t("previous") ."" : t("previous")) ."index". ($next ? "nid\" title=\"". t("View the next page in this book.") ."\">". t("next") ."" : t("next")) .""; - $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? "parent\" title=\"". t("View the parent section.") ."\">". t("up") ."" : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; + $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? "parent\" title=\"". t("View this page's parent section.") ."\">". t("up") ."" : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; $output .= "
"; $output .= "
". $theme->links(link_node($node, $main)) ."
"; $output .= ""; diff --git a/modules/calendar.module b/modules/calendar.module index 3431ab7433f..cffacdec9cf 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[] = "archives"; + $links[] = "archives"; } return $links ? $links : array(); diff --git a/modules/cvs.module b/modules/cvs.module index 612a5fdaa85..ca739fe51e7 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[] = "" . t("cvs messages") . ""; + $links[] = "" . t("cvs messages") . ""; } return $links ? $links : array(); diff --git a/modules/forum.module b/modules/forum.module index 8086a88267b..139f04dd76f 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[] = "". t("forum") .""; + $links[] = "". t("forum") .""; } return $links ? $links : array(); diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 8086a88267b..139f04dd76f 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[] = "". t("forum") .""; + $links[] = "". t("forum") .""; } return $links ? $links : array(); diff --git a/modules/rating.module b/modules/rating.module index 91228dbd38f..ad07e30ed22 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[] = "". t("user ratings") .""; + $links[] = "". t("user ratings") .""; } return $links ? $links : array(); diff --git a/modules/tracker.module b/modules/tracker.module index 4234f478626..0735f107a03 100644 --- a/modules/tracker.module +++ b/modules/tracker.module @@ -4,7 +4,7 @@ function tracker_link($type) { if ($type == "menu") { - $links[] = "". t("recent comments") .""; + $links[] = "". t("recent comments") .""; } return $links ? $links : array(); @@ -45,8 +45,8 @@ function tracker_comments($id = 0) { function tracker_menu() { global $user; - $links[] = "uid\">your recent comments"; - $links[] = "all recent comments"; + $links[] = "uid\" title=\"". t("Display an overview of your recent comments.") ."\">your recent comments"; + $links[] = "all recent comments"; return "
". implode(" · ", $links) ."
"; } diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index 4234f478626..0735f107a03 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -4,7 +4,7 @@ function tracker_link($type) { if ($type == "menu") { - $links[] = "". t("recent comments") .""; + $links[] = "". t("recent comments") .""; } return $links ? $links : array(); @@ -45,8 +45,8 @@ function tracker_comments($id = 0) { function tracker_menu() { global $user; - $links[] = "uid\">your recent comments"; - $links[] = "all recent comments"; + $links[] = "uid\" title=\"". t("Display an overview of your recent comments.") ."\">your recent comments"; + $links[] = "all recent comments"; return "
". implode(" · ", $links) ."
"; } diff --git a/modules/user.module b/modules/user.module index 673f2bf3f6b..a182f4eb9da 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[] = "". t("user account") .""; + $links[] = "". t("user account") .""; } if ($type == "menu") { diff --git a/modules/user/user.module b/modules/user/user.module index 673f2bf3f6b..a182f4eb9da 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[] = "". t("user account") .""; + $links[] = "". t("user account") .""; } if ($type == "menu") {