From c71e1339584173f47cb7c1869426ef3cf9639ef3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 7 Jan 2002 22:08:52 +0000 Subject: - Added about 50 title tags. --- modules/blog/blog.module | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'modules/blog/blog.module') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 04a6846d2..b3c1081e0 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -9,11 +9,10 @@ function blog_conf_options() { } - function blog_node($field) { global $user; - $info["name"] = t("personal blog"); + $info["name"] = t("personal blog entry"); $info["description"] = t("A blog is your personal diary or journal. It is made up of individual entries that are time stamped and are typically arranged by the day, as normal a diary. Blogs often contain links to things you've seen, or on which you agree/disagree. Since a Blog is personal, you and only you have full control on what you publish. The most interesting blogs, or those blogs that fit the site's topic might get promoted to the front page."); return $info[$field]; @@ -168,19 +167,19 @@ function blog_page_user($uid = 0, $date = 0) { if ($date != date("dny", $blog->created)) { $date = date("dny", $blog->created); - $output .= "uid&date=". mktime(23, 59, 59, date("n", $blog->created), date("d", $blog->created), date("Y", $blog->created)) ."\">". format_date($blog->created, custom, "d M Y") .":"; + $output .= "uid&date=". mktime(23, 59, 59, date("n", $blog->created), date("d", $blog->created), date("Y", $blog->created)) ."\" title=\"". t("Permanent link to this blog entry.") ."\">". format_date($blog->created, custom, "d M Y") .":"; } if ($user->uid && $user->uid == $uid) { - $links[] = "nid\">". t("edit") .""; + $links[] = "nid\" title=\"". t("Make changes to your blog entry.") ."\">". t("edit") .""; } if ($user->uid) { - $links[] = "nid\">". t("blog it") .""; + $links[] = "nid\" title=\"". t("Comment on this blog entry in your personal blog.") ."\">". t("blog it") .""; } if ($blog->comment) { - $links[] = "nid\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; + $links[] = "nid\" title=\"". t("View 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) .""; @@ -189,7 +188,7 @@ function blog_page_user($uid = 0, $date = 0) { } $output .= ""; - $output .= "uid\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />\n"; + $output .= "uid\" title=\"". t("View 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"); } @@ -206,18 +205,18 @@ function blog_page_last() { $links = array(); - $links[] = "uid\">". sprintf("%s's blog", $blog->name) .""; + $links[] = "uid\" title=\"". sprintf(t("Read %s's latest blog entries."), $blog->name) ."\">". sprintf("%s's blog", $blog->name) .""; if ($blog->uid == $user->uid) { - $links[] = "nid\">". t("edit") .""; + $links[] = "nid\" title=\"". t("Edit this blog entry.") ."\">". t("edit") .""; } if ($user->uid) { - $links[] = "nid\">". t("blog it") .""; + $links[] = "nid\" title=\"". t("Comment on this blog entry in your personal blog.") ."\">". t("blog it") .""; } if ($blog->comment) { - $links[] = "nid\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; + $links[] = "nid\" title=\"". t("Read the posted comments or add a new comment.") ."\">". format_plural(comment_num_all($blog->nid), t("comment"), t("comments")) .""; } $output .= "". check_output($blog->title) ."". $theme->links($links) .""; @@ -226,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"); } @@ -312,27 +311,26 @@ 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\">". t("view your blog") .""; + $links[] = "". t("add blog entry") .""; + $links[] = "uid\" title=\"". t("View your latest blog entries in chronological order.") ."\">". t("view your blog") .""; } if ($type == "node" && $node->type == "blog") { if (blog_access("update", $node)) { - $links[] = "nid\">". t("update this blog") .""; + $links[] = "nid\" title=\"". t("Update this blog entry.") ."\">". t("update this blog") .""; } else { - $links[] = "uid\">". strtr(t("%a's blog"), array("%a" => $node->name)) .""; + $links[] = "uid\" title=\"". sprintf(t("Read %s's latest blog entries."), $node->name) ."\">". strtr(t("%a's blog"), array("%a" => $node->name)) .""; } } return $links ? $links : array(); } - function blog_block() { global $user; @@ -342,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; -- cgit v1.2.3