diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-10-22 08:28:47 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-10-22 08:28:47 +0000 |
commit | 36d44fbfb07e4682f219368e1424c58fc61315a1 (patch) | |
tree | d6a5363c6ec34a5b81aac6fee283ee7479d45ea4 /modules/blog | |
parent | c93c0fc7000f5cbb78ac2715ace58c28b789dc81 (diff) | |
download | brdo-36d44fbfb07e4682f219368e1424c58fc61315a1.tar.gz brdo-36d44fbfb07e4682f219368e1424c58fc61315a1.tar.bz2 |
#84146: Use 'Sentence capitalization' for menu items, page titles, form items, etc
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/blog.module | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index f3f8ed32e..bc1da62c8 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -12,7 +12,7 @@ function blog_node_info() { return array( 'blog' => array( - 'name' => t('blog entry'), + 'name' => t('Blog entry'), 'module' => 'blog', 'description' => t('A blog is a regularly updated journal or diary made up of individual posts shown in reversed chronological order. Each member of the site may create and maintain a blog.'), ) @@ -104,7 +104,7 @@ function blog_feed_user($uid = 0) { */ function blog_feed_last() { $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, r.teaser, n.created, u.name, u.uid FROM {node} n INNER JOIN {node_revisions} r ON n.vid = r.vid INNER JOIN {users} u ON n.uid = u.uid WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"), 0, variable_get('feed_default_items', 10)); - $channel['title'] = variable_get('site_name', 'drupal') .' blogs'; + $channel['title'] = variable_get('site_name', 'Drupal') .' blogs'; $channel['link'] = url('blog', NULL, NULL, TRUE); $channel['description'] = $term->description; node_feed($result, $channel); @@ -228,7 +228,7 @@ function blog_form(&$node) { function blog_view($node, $teaser = FALSE, $page = FALSE) { if ($page) { // Breadcrumb navigation - $breadcrumb[] = array('path' => 'blog', 'title' => t('blogs')); + $breadcrumb[] = array('path' => 'blog', 'title' => t('Blogs')); $breadcrumb[] = array('path' => 'blog/'. $node->uid, 'title' => t("@name's blog", array('@name' => $node->name))); $breadcrumb[] = array('path' => 'node/'. $node->nid); menu_set_location($breadcrumb); @@ -263,13 +263,13 @@ function blog_menu($may_cache) { $items = array(); if ($may_cache) { - $items[] = array('path' => 'node/add/blog', 'title' => t('blog entry'), + $items[] = array('path' => 'node/add/blog', 'title' => t('Blog entry'), 'access' => user_access('edit own blog')); - $items[] = array('path' => 'blog', 'title' => t('blogs'), + $items[] = array('path' => 'blog', 'title' => t('Blogs'), 'callback' => 'blog_page', 'access' => user_access('access content'), 'type' => MENU_SUGGESTED_ITEM); - $items[] = array('path' => 'blog/'. $user->uid, 'title' => t('my blog'), + $items[] = array('path' => 'blog/'. $user->uid, 'title' => t('My blog'), 'access' => user_access('edit own blog'), 'type' => MENU_DYNAMIC_ITEM); } |