Index: includes/menu.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/menu.inc,v retrieving revision 1.156 diff -u -p -r1.156 menu.inc --- includes/menu.inc 12 Mar 2007 13:01:10 -0000 1.156 +++ includes/menu.inc 15 Mar 2007 15:39:37 -0000 @@ -406,6 +406,30 @@ function _menu_translate(&$item, $map, $ } } $item->alias = TRUE; + + // Translate title. + $callback = $item->title_callback; + // t() is a special case. Since it is used very close to all the time, + // handle it directly instead of using call_user_func_array(). + if ($callback == 't') { + if (empty($item->title_arguments)) { + $arguments = 0; + } + else { + $arguments = unserialize($item->title_arguments); + } + $item->title = t($item->title, $arguments); + } + else { + if (empty($item->title_arguments)) { + $arguments = array(); + } + else { + $arguments = unserialize($item->title_arguments); + } + $item->title = call_user_func_array($callback, $arguments); + } + return $map; } @@ -742,6 +766,8 @@ function menu_rebuild() { '_mleft' => 0, '_mright' => 0, 'block callback' => '', + 'title arguments' => array(), + 'title callback' => 't', 'description' => '', 'attributes' => '', 'query' => '', @@ -751,6 +777,8 @@ function menu_rebuild() { ); $link_path = $item['to_arg_functions'] ? $path : drupal_get_path_alias($path); + $item['title arguments'] = empty($item['title arguments']) ? '' : serialize($item['title arguments']); + if ($item['attributes']) { $item['attributes'] = serialize($item['attributes']); } @@ -766,17 +794,19 @@ function menu_rebuild() { db_query("INSERT INTO {menu} ( mid, pid, path, load_functions, to_arg_functions, - access_callback, access_arguments, page_callback, page_arguments, fit, - number_parts, visible, parents, depth, has_children, tab, title, parent, + access_callback, access_arguments, page_callback, page_arguments, + title_callback, title_arguments, fit, number_parts, visible, + parents, depth, has_children, tab, title, parent, type, mleft, mright, block_callback, description, link_path, attributes, query, fragment, absolute, html) - VALUES (%d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, %d, - '%s', %d, %d, %d, '%s', '%s', '%s', %d, %d, '%s', '%s', + VALUES (%d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', + %d, %d, %d, '%s', %d, %d, %d, '%s', '%s', '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', %d, %d)", $item['_mid'], $item['_pid'], $path, $item['load_functions'], $item['to_arg_functions'], $item['access callback'], serialize($item['access arguments']), $item['page callback'], - serialize($item['page arguments']), $item['_fit'], + serialize($item['page arguments']), $item['title callback'], + $item['title arguments'], $item['_fit'], $item['_number_parts'], $item['_visible'], $item['_parents'], $item['_depth'], $has_children, $item['_tab'], $item['title'], $item['parent'], $item['type'], $item['_mleft'], Index: modules/aggregator/aggregator.module =================================================================== RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator.module,v retrieving revision 1.331 diff -u -p -r1.331 aggregator.module --- modules/aggregator/aggregator.module 12 Mar 2007 13:01:10 -0000 1.331 +++ modules/aggregator/aggregator.module 15 Mar 2007 15:39:37 -0000 @@ -30,13 +30,13 @@ function aggregator_help($section) { */ function aggregator_menu() { $items['admin/content/aggregator'] = array( - 'title' => t('News aggregator'), + 'title' => 'News aggregator', 'description' => t("Configure which content your site aggregates from other sites, how often it polls them, and how they're categorized."), 'page callback' => 'aggregator_admin_overview', 'access arguments' => array('administer news feeds'), ); $items['admin/content/aggregator/add/feed'] = array( - 'title' => t('Add feed'), + 'title' => 'Add feed', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_feed'), 'access arguments' => array('administer news feeds'), @@ -44,7 +44,7 @@ function aggregator_menu() { 'parent' => 'admin/content/aggregator', ); $items['admin/content/aggregator/add/category'] = array( - 'title' => t('Add category'), + 'title' => 'Add category', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_category'), 'access arguments' => array('administer news feeds'), @@ -52,26 +52,26 @@ function aggregator_menu() { 'parent' => 'admin/content/aggregator', ); $items['admin/content/aggregator/remove/%aggregator_feed'] = array( - 'title' => t('Remove items'), + 'title' => 'Remove items', 'page callback' => 'aggregator_admin_remove_feed', 'page arguments' => array(4), 'access arguments' => array('administer news feeds'), 'type' => MENU_CALLBACK, ); $items['admin/content/aggregator/update/%aggregator_feed'] = array( - 'title' => t('Update items'), + 'title' => 'Update items', 'page callback' => 'aggregator_admin_refresh_feed', 'page arguments' => array(4), 'access arguments' => array('administer news feeds'), 'type' => MENU_CALLBACK, ); $items['admin/content/aggregator/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/content/aggregator/settings'] = array( - 'title' => t('Settings'), + 'title' => 'Settings', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_admin_settings'), 'type' => MENU_LOCAL_TASK, @@ -79,28 +79,28 @@ function aggregator_menu() { 'access arguments' => array('administer news feeds'), ); $items['aggregator'] = array( - 'title' => t('News aggregator'), + 'title' => 'News aggregator', 'page callback' => 'aggregator_page_last', 'access arguments' => array('access news feeds'), 'weight' => 5, ); $items['aggregator/sources'] = array( - 'title' => t('Sources'), + 'title' => 'Sources', 'page callback' => 'aggregator_page_sources', 'access arguments' => array('access news feeds')); $items['aggregator/categories'] = array( - 'title' => t('Categories'), + 'title' => 'Categories', 'page callback' => 'aggregator_page_categories', 'access callback' => '_aggregator_has_categories', ); $items['aggregator/rss'] = array( - 'title' => t('RSS feed'), + 'title' => 'RSS feed', 'page callback' => 'aggregator_page_rss', 'access arguments' => array('access news feeds'), 'type' => MENU_CALLBACK, ); $items['aggregator/opml'] = array( - 'title' => t('OPML feed'), + 'title' => 'OPML feed', 'page callback' => 'aggregator_page_opml', 'access arguments' => array('access news feeds'), 'type' => MENU_CALLBACK, @@ -115,19 +115,19 @@ function aggregator_menu() { 'access arguments' => array('access news feeds'), ); $items[$path .'/view'] = array( - 'title' => t('View'), + 'title' => 'View', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items[$path .'/categorize'] = array( - 'title' => t('Categorize'), + 'title' => 'Categorize', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_page_category'), 'access arguments' => array('administer news feeds', 2), 'type' => MENU_LOCAL_TASK, ); $items[$path .'/configure'] = array( - 'title' => t('Configure'), + 'title' => 'Configure', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_category', 2), 'access arguments' => array('administer news feeds', 2), @@ -140,19 +140,19 @@ function aggregator_menu() { 'type' => MENU_CALLBACK, ); $items['aggregator/sources/%aggregator_feed/view'] = array( - 'title' => t('View'), + 'title' => 'View', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['aggregator/sources/%aggregator_feed/categorize'] = array( - 'title' => t('Categorize'), + 'title' => 'Categorize', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_page_source'), 'access arguments' => array('administer news feeds'), 'type' => MENU_LOCAL_TASK, ); $items['aggregator/sources/%aggregator_feed/configure'] = array( - 'title' => t('Configure'), + 'title' => 'Configure', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_feed', 2), 'access arguments' => array('administer news feeds'), @@ -160,14 +160,14 @@ function aggregator_menu() { 'weight' => 1, ); $items['admin/content/aggregator/edit/feed/%aggregator_feed'] = array( - 'title' => t('Edit feed'), + 'title' => 'Edit feed', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_feed', 5), 'access arguments' => array('administer news feeds'), 'type' => MENU_CALLBACK, ); $items['admin/content/aggregator/edit/category/%aggregator_category'] = array( - 'title' => t('Edit category'), + 'title' => 'Edit category', 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_category', 5), 'access arguments' => array('administer news feeds'), Index: modules/block/block.module =================================================================== RCS file: /cvs/drupal/drupal/modules/block/block.module,v retrieving revision 1.251 diff -u -p -r1.251 block.module --- modules/block/block.module 31 Jan 2007 15:49:22 -0000 1.251 +++ modules/block/block.module 15 Mar 2007 15:39:37 -0000 @@ -60,36 +60,37 @@ function block_perm() { */ function block_menu() { $items['admin/build/block'] = array( - 'title' => t('Blocks'), + 'title' => 'Blocks', 'description' => t('Configure what block content appears in your site\'s sidebars and other regions.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('block_admin_display'), 'access arguments' => array('administer blocks'), ); $items['admin/build/block/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/build/block/configure'] = array( - 'title' => t('Configure block'), + 'title' => 'Configure block', 'page arguments' => array('block_admin_configure'), 'type' => MENU_CALLBACK, ); $items['admin/build/block/delete'] = array( - 'title' => t('Delete block'), + 'title' => 'Delete block', 'page arguments' => array('block_box_delete'), 'type' => MENU_CALLBACK, ); $items['admin/build/block/add'] = array( - 'title' => t('Add block'), + 'title' => 'Add block', 'page arguments' => array('block_add_block_form'), 'type' => MENU_LOCAL_TASK, ); $default = variable_get('theme_default', 'garland'); foreach (list_themes() as $key => $theme) { $items['admin/build/block/list/'. $key] = array( - 'title' => t('!key settings', array('!key' => $key)), + 'title' => '!key settings', + 'title arguments' => array('!key' => $key), 'page arguments' => array('block_admin_display', $key), 'type' => $key== $default ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK, 'weight' => $key == $default ? -10 : 0, Index: modules/blog/blog.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blog/blog.module,v retrieving revision 1.276 diff -u -p -r1.276 blog.module --- modules/blog/blog.module 7 Mar 2007 12:41:02 -0000 1.276 +++ modules/blog/blog.module 15 Mar 2007 15:39:37 -0000 @@ -254,13 +254,13 @@ function blog_link($type, $node = NULL, */ function blog_menu() { $items['blog'] = array( - 'title' => t('Blogs'), + 'title' => 'Blogs', 'page callback' => 'blog_page', 'access arguments' => array('access content'), 'type' => MENU_SUGGESTED_ITEM, ); $items['blog/%user_current'] = array( - 'title' => t('My blog'), + 'title' => 'My blog', 'page arguments' => array(1), 'access arguments' => array('edit own blog'), ); Index: modules/blogapi/blogapi.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blogapi/blogapi.module,v retrieving revision 1.102 diff -u -p -r1.102 blogapi.module --- modules/blogapi/blogapi.module 15 Feb 2007 11:40:18 -0000 1.102 +++ modules/blogapi/blogapi.module 15 Mar 2007 15:39:37 -0000 @@ -553,13 +553,13 @@ function blogapi_admin_settings() { function blogapi_menu() { $items['blogapi/rsd'] = array( - 'title' => t('RSD'), + 'title' => 'RSD', 'page callback' => 'blogapi_rsd', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ); $items['admin/settings/blogapi'] = array( - 'title' => t('Blog APIs'), + 'title' => 'Blog APIs', 'description' => t('Configure which content types and engines external blog clients can use.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('blogapi_admin_settings'), Index: modules/book/book.module =================================================================== RCS file: /cvs/drupal/drupal/modules/book/book.module,v retrieving revision 1.411 diff -u -p -r1.411 book.module --- modules/book/book.module 11 Feb 2007 09:30:51 -0000 1.411 +++ modules/book/book.module 15 Mar 2007 15:39:37 -0000 @@ -87,24 +87,24 @@ function book_link($type, $node = NULL, */ function book_menu() { $items['admin/content/book'] = array( - 'title' => t('Books'), + 'title' => 'Books', 'description' => t("Manage site's books and orphaned book pages."), 'page callback' => 'book_admin', 'access arguments' => array('administer nodes'), ); $items['admin/content/book/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['admin/content/book/orphan'] = array( - 'title' => t('Orphan pages'), + 'title' => 'Orphan pages', 'page callback' => 'drupal_get_form', 'page arguments' => array('book_admin_orphan'), 'type' => MENU_LOCAL_TASK, 'weight' => 8, ); $items['book'] = array( - 'title' => t('Books'), + 'title' => 'Books', 'page callback' => 'book_render', 'access arguments' => array('access content'), 'type' => MENU_SUGGESTED_ITEM, @@ -115,7 +115,7 @@ function book_menu() { 'type' => MENU_CALLBACK, ); $items['node/%node/outline'] = array( - 'title' => t('Outline'), + 'title' => 'Outline', 'page callback' => 'drupal_get_form', 'page arguments' => array('book_outline', 1), 'access callback' => '_book_outline_access', Index: modules/comment/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v retrieving revision 1.529 diff -u -p -r1.529 comment.module --- modules/comment/comment.module 12 Mar 2007 13:08:02 -0000 1.529 +++ modules/comment/comment.module 15 Mar 2007 15:39:37 -0000 @@ -149,7 +149,7 @@ function _comment_view_access($node, $ci */ function comment_menu() { $items['admin/content/comment'] = array( - 'title' => t('Comments'), + 'title' => 'Comments', 'description' => t('List and edit site comments and the comment moderation queue.'), 'page callback' => 'comment_admin', 'access arguments' => array('administer comments'), @@ -157,25 +157,25 @@ function comment_menu() { // Tabs: $items['admin/content/comment/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); // Subtabs: $items['admin/content/comment/list/new'] = array( - 'title' => t('Published comments'), + 'title' => 'Published comments', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/content/comment/list/approval'] = array( - 'title' => t('Approval queue'), + 'title' => 'Approval queue', 'page arguments' => array('approval'), 'type' => MENU_LOCAL_TASK, ); $items['admin/content/comment/settings'] = array( - 'title' => t('Settings'), + 'title' => 'Settings', 'page callback' => 'drupal_get_form', 'page arguments' => array('comment_admin_settings'), 'weight' => 10, @@ -183,20 +183,20 @@ function comment_menu() { ); $items['comment/delete'] = array( - 'title' => t('Delete comment'), + 'title' => 'Delete comment', 'page callback' => 'comment_delete', 'access arguments' => array('administer comments'), 'type' => MENU_CALLBACK, ); $items['comment/edit'] = array( - 'title' => t('Edit comment'), + 'title' => 'Edit comment', 'page callback' => 'comment_edit', 'access arguments' => array('post comments'), 'type' => MENU_CALLBACK, ); $items['comment/reply/%node'] = array( - 'title' => t('Reply to comment'), + 'title' => 'Reply to comment', 'page callback' => 'comment_reply', 'page arguments' => array(2), 'access callback' => 'node_access', @@ -204,7 +204,7 @@ function comment_menu() { 'type' => MENU_CALLBACK, ); $items['node/%node/%'] = array( - 'title' => t('View'), + 'title' => 'View', 'page callback' => 'node_page_view', 'page arguments' => array(1, 2), 'access callback' => '_comment_view_access', Index: modules/contact/contact.module =================================================================== RCS file: /cvs/drupal/drupal/modules/contact/contact.module,v retrieving revision 1.78 diff -u -p -r1.78 contact.module --- modules/contact/contact.module 15 Feb 2007 11:40:18 -0000 1.78 +++ modules/contact/contact.module 15 Mar 2007 15:39:37 -0000 @@ -42,50 +42,50 @@ function contact_perm() { */ function contact_menu() { $items['admin/build/contact'] = array( - 'title' => t('Contact form'), + 'title' => 'Contact form', 'description' => t('Create a system contact form and set up categories for the form to use.'), 'page callback' => 'contact_admin_categories', 'access arguments' => array('administer site configuration'), ); $items['admin/build/contact/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'page callback' => 'contact_admin_categories', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['admin/build/contact/add'] = array( - 'title' => t('Add category'), + 'title' => 'Add category', 'page callback' => 'drupal_get_form', 'page arguments' => array('contact_admin_edit'), 'type' => MENU_LOCAL_TASK, 'weight' => 1, ); $items['admin/build/contact/edit'] = array( - 'title' => t('Edit contact category'), + 'title' => 'Edit contact category', 'page callback' => 'drupal_get_form', 'page arguments' => array('contact_admin_edit'), 'type' => MENU_CALLBACK, ); $items['admin/build/contact/delete'] = array( - 'title' => t('Delete contact'), + 'title' => 'Delete contact', 'page callback' => 'drupal_get_form', 'page arguments' => array('contact_admin_delete'), 'type' => MENU_CALLBACK, ); $items['admin/build/contact/settings'] = array( - 'title' => t('Settings'), + 'title' => 'Settings', 'page callback' => 'drupal_get_form', 'page arguments' => array('contact_admin_settings'), 'type' => MENU_LOCAL_TASK, 'weight' => 2, ); $items['contact'] = array( - 'title' => t('Contact'), + 'title' => 'Contact', 'page callback' => 'contact_site_page', 'access arguments' => array('access site-wide contact form'), 'type' => MENU_SUGGESTED_ITEM, ); $items['user/%user/contact'] = array( - 'title' => t('Contact'), + 'title' => 'Contact', 'page callback' => 'contact_user_page', 'page arguments' => array(1), 'type' => MENU_LOCAL_TASK, Index: modules/drupal/drupal.module =================================================================== RCS file: /cvs/drupal/drupal/modules/drupal/drupal.module,v retrieving revision 1.140 diff -u -p -r1.140 drupal.module --- modules/drupal/drupal.module 27 Feb 2007 12:29:22 -0000 1.140 +++ modules/drupal/drupal.module 15 Mar 2007 15:39:37 -0000 @@ -338,14 +338,14 @@ function drupal_auth($username, $passwor */ function drupal_menu() { $items['admin/settings/sites-registry'] = array( - 'title' => t('Sites registry'), + 'title' => 'Sites registry', 'description' => t('Register with another Drupal site (drupal.org by default) for statistics sharing, or set up your server to be a central server for registrations.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('drupal_sites_registry_settings'), 'access arguments' => array('administer site configuration'), ); $items['admin/settings/distributed-authentication'] = array( - 'title' => t('Distributed authentication'), + 'title' => 'Distributed authentication', 'description' => t('Allow your site to accept logins from other Drupal sites such as drupal.org.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('drupal_distributed_authentication_settings'), @@ -353,7 +353,7 @@ function drupal_menu() { ); if (variable_get('drupal_authentication_service', 0)) { $items['drupal'] = array( - 'title' => t('Drupal'), + 'title' => 'Drupal', 'page callback' => 'drupal_page_help', 'access callback' => TRUE, 'type' => MENU_SUGGESTED_ITEM, Index: modules/filter/filter.module =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v retrieving revision 1.166 diff -u -p -r1.166 filter.module --- modules/filter/filter.module 12 Mar 2007 11:31:02 -0000 1.166 +++ modules/filter/filter.module 15 Mar 2007 15:39:38 -0000 @@ -52,31 +52,31 @@ function filter_help($section) { */ function filter_menu() { $items['admin/settings/filters'] = array( - 'title' => t('Input formats'), + 'title' => 'Input formats', 'description' => t('Configure how content input by users is filtered, including allowed HTML tags, PHP code tags. Also allows enabling of module-provided filters.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('filter_admin_overview'), 'access arguments' => array('administer filters'), ); $items['admin/settings/filters/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['admin/settings/filters/add'] = array( - 'title' => t('Add input format'), + 'title' => 'Add input format', 'page callback' => 'drupal_get_form', 'page arguments' => array('filter_admin_format_form'), 'type' => MENU_LOCAL_TASK, 'weight' => 1, ); $items['admin/settings/filters/delete'] = array( - 'title' => t('Delete input format'), + 'title' => 'Delete input format', 'page callback' => 'drupal_get_form', 'page arguments' => array('filter_admin_delete'), 'type' => MENU_CALLBACK, ); $items['filter/tips'] = array( - 'title' => t('Compose tips'), + 'title' => 'Compose tips', 'page callback' => 'filter_tips_long', 'access callback' => TRUE, 'type' => MENU_SUGGESTED_ITEM, @@ -88,19 +88,19 @@ function filter_menu() { ); $items['admin/settings/filters/%filter_format/list'] = array( - 'title' => t('View'), + 'title' => 'View', 'page arguments' => array('filter_admin_format_form', 3), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => 0, ); $items['admin/settings/filters/%filter_format/configure'] = array( - 'title' => t('Configure'), + 'title' => 'Configure', 'page arguments' => array('filter_admin_configure', 3), 'type' => MENU_LOCAL_TASK, 'weight' => 1, ); $items['admin/settings/filters/%filter_format/order'] = array( - 'title' => t('Rearrange'), + 'title' => 'Rearrange', 'page arguments' => array('filter_admin_order', 3), 'type' => MENU_LOCAL_TASK, 'weight' => 2, Index: modules/forum/forum.module =================================================================== RCS file: /cvs/drupal/drupal/modules/forum/forum.module,v retrieving revision 1.386 diff -u -p -r1.386 forum.module --- modules/forum/forum.module 28 Feb 2007 20:42:50 -0000 1.386 +++ modules/forum/forum.module 15 Mar 2007 15:39:38 -0000 @@ -33,42 +33,42 @@ function forum_help($section) { */ function forum_menu() { $items['node/add/forum'] = array( - 'title' => t('Forum topic'), + 'title' => 'Forum topic', 'access arguments' => array('create forum topics'), ); $items['forum'] = array( - 'title' => t('Forums'), + 'title' => 'Forums', 'page callback' => 'forum_page', 'access arguments' => array('access content'), 'type' => MENU_SUGGESTED_ITEM, ); $items['admin/content/forum'] = array( - 'title' => t('Forums'), + 'title' => 'Forums', 'description' => t('Control forums and their hierarchy and change forum settings.'), 'page callback' => 'forum_overview', 'access arguments' => array('administer forums'), ); $items['admin/content/forum/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/content/forum/add/container'] = array( - 'title' => t('Add container'), + 'title' => 'Add container', 'page callback' => 'forum_form_main', 'page arguments' => array('container'), 'type' => MENU_LOCAL_TASK, 'parent' => 'admin/content/forum', ); $items['admin/content/forum/add/forum'] = array( - 'title' => t('Add forum'), + 'title' => 'Add forum', 'page callback' => 'forum_form_main', 'page arguments' => array('forum'), 'type' => MENU_LOCAL_TASK, 'parent' => 'admin/content/forum', ); $items['admin/content/forum/settings'] = array( - 'title' => t('Settings'), + 'title' => 'Settings', 'page callback' => 'drupal_get_form', 'page arguments' => array('forum_admin_settings'), 'weight' => 5, @@ -80,13 +80,13 @@ function forum_menu() { 'type' => MENU_CALLBACK, ); $items['admin/content/forum/edit/container/%forum_term'] = array( - 'title' => t('Edit container'), + 'title' => 'Edit container', 'page callback' => 'forum_form_main', 'page arguments' => array('container', 5), 'type' => MENU_CALLBACK, ); $items['admin/content/forum/edit/forum/%forum_term'] = array( - 'title' => t('Edit forum'), + 'title' => 'Edit forum', 'page callback' => 'forum_form_main', 'page arguments' => array('forum', 5), 'type' => MENU_CALLBACK, Index: modules/help/help.module =================================================================== RCS file: /cvs/drupal/drupal/modules/help/help.module,v retrieving revision 1.70 diff -u -p -r1.70 help.module --- modules/help/help.module 24 Jan 2007 14:48:36 -0000 1.70 +++ modules/help/help.module 15 Mar 2007 15:39:38 -0000 @@ -11,7 +11,7 @@ */ function help_menu() { $items['admin/help'] = array( - 'title' => t('Help'), + 'title' => 'Help', 'page callback' => 'help_main', 'access arguments' => array('access administration pages'), 'weight' => 9, @@ -19,7 +19,7 @@ function help_menu() { foreach (module_implements('help', TRUE) as $module) { $items['admin/help/'. $module] = array( - 'title' => t($module), + 'title' => $module, 'page callback' => 'help_page', 'type' => MENU_CALLBACK, ); Index: modules/locale/locale.module =================================================================== RCS file: /cvs/drupal/drupal/modules/locale/locale.module,v retrieving revision 1.160 diff -u -p -r1.160 locale.module --- modules/locale/locale.module 27 Feb 2007 12:29:22 -0000 1.160 +++ modules/locale/locale.module 15 Mar 2007 15:39:38 -0000 @@ -44,7 +44,7 @@ function locale_help($section) { function locale_menu() { // Main admin menu item $items['admin/build/locale'] = array( - 'title' => t('Localization'), + 'title' => 'Localization', 'description' => t('Configure site localization and user interface translation.'), 'page callback' => 'locale_admin_manage', 'access arguments' => array('administer locales'), @@ -52,12 +52,12 @@ function locale_menu() { // Top level tabs $items['admin/build/locale/language'] = array( - 'title' => t('Manage languages'), + 'title' => 'Manage languages', 'weight' => -10, 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['admin/build/locale/string/search'] = array( - 'title' => t('Manage strings'), + 'title' => 'Manage strings', 'page callback' => 'locale_string_search', 'weight' => 10, 'type' => MENU_LOCAL_TASK, @@ -66,24 +66,24 @@ function locale_menu() { // Manage languages subtabs $items['admin/build/locale/language/overview'] = array( - 'title' => t('List'), + 'title' => 'List', 'weight' => 0, 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['admin/build/locale/language/add'] = array( - 'title' => t('Add language'), + 'title' => 'Add language', 'page callback' => 'locale_admin_manage_add', 'weight' => 5, 'type' => MENU_LOCAL_TASK, ); $items['admin/build/locale/language/import'] = array( - 'title' => t('Import'), + 'title' => 'Import', 'page callback' => 'locale_admin_import', 'weight' => 10, 'type' => MENU_LOCAL_TASK, ); $items['admin/build/locale/language/export'] = array( - 'title' => t('Export'), + 'title' => 'Export', 'page callback' => 'locale_admin_export', 'weight' => 20, 'type' => MENU_LOCAL_TASK, @@ -91,20 +91,20 @@ function locale_menu() { // Language related callbacks $items['admin/build/locale/language/delete'] = array( - 'title' => t('Confirm'), + 'title' => 'Confirm', 'page callback' => 'drupal_get_form', 'page arguments' => array('locale_admin_manage_delete_form'), 'type' => MENU_CALLBACK, ); // String related callbacks $items['admin/build/locale/string/edit/%'] = array( - 'title' => t('Edit string'), + 'title' => 'Edit string', 'page callback' => 'drupal_get_form', 'page arguments' => array('locale_admin_string_edit', 5), 'type' => MENU_CALLBACK, ); $items['admin/build/locale/string/delete/%'] = array( - 'title' => t('Delete string'), + 'title' => 'Delete string', 'page callback' => 'locale_admin_string_delete', 'page arguments' => array(5), 'type' => MENU_CALLBACK, Index: modules/menu/menu.module =================================================================== RCS file: /cvs/drupal/drupal/modules/menu/menu.module,v retrieving revision 1.102 diff -u -p -r1.102 menu.module --- modules/menu/menu.module 31 Jan 2007 16:38:34 -0000 1.102 +++ modules/menu/menu.module 15 Mar 2007 15:39:38 -0000 @@ -40,66 +40,66 @@ function menu_menu() { if ($may_cache) { $items[] = array('path' => 'admin/build/menu', - 'title' => t('Menus'), + 'title' => 'Menus', 'description' => t("Control your site's navigation menu, primary links and secondary links. as well as rename and reorganize menu items."), 'callback' => 'menu_overview', 'access' => user_access('administer menu')); $items[] = array('path' => 'admin/build/menu/list', - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'admin/build/menu/item/add', - 'title' => t('Add menu item'), + 'title' => 'Add menu item', 'callback' => 'drupal_get_form', 'callback arguments' => array('menu_edit_item_form', 'add'), 'access' => user_access('administer menu'), 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/build/menu/item/edit', - 'title' => t('Edit menu item'), + 'title' => 'Edit menu item', 'callback' => 'drupal_get_form', 'callback arguments' => array('menu_edit_item_form', 'edit'), 'access' => user_access('administer menu'), 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/build/menu/item/reset', - 'title' => t('Reset menu item'), + 'title' => 'Reset menu item', 'callback' => 'drupal_get_form', 'callback arguments' => array('menu_reset_item'), 'access' => user_access('administer menu'), 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/build/menu/item/disable', - 'title' => t('Disable menu item'), + 'title' => 'Disable menu item', 'callback' => 'menu_disable_item', 'access' => user_access('administer menu'), 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/build/menu/item/delete', - 'title' => t('Delete menu item'), + 'title' => 'Delete menu item', 'callback' => 'drupal_get_form', 'callback arguments' => array('menu_item_delete_form'), 'access' => user_access('administer menu'), 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/build/menu/menu/add', - 'title' => t('Add menu'), + 'title' => 'Add menu', 'callback' => 'drupal_get_form', 'callback arguments' => array('menu_edit_menu_form', 'add'), 'access' => user_access('administer menu'), 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'admin/build/menu/menu/edit', - 'title' => t('Edit menu'), + 'title' => 'Edit menu', 'callback' => 'drupal_get_form', 'callback arguments' => array('menu_edit_menu_form', 'edit'), 'access' => user_access('administer menu'), 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/build/menu/menu/delete', - 'title' => t('Delete menu'), + 'title' => 'Delete menu', 'callback' => 'drupal_get_form', 'callback arguments' => array('menu_item_delete_form'), 'access' => user_access('administer menu'), 'type' => MENU_CALLBACK); $items[] = array('path' => 'admin/build/menu/settings', - 'title' => t('Settings'), + 'title' => 'Settings', 'callback' => 'drupal_get_form', 'callback arguments' => array('menu_configure'), 'type' => MENU_LOCAL_TASK, Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.790 diff -u -p -r1.790 node.module --- modules/node/node.module 14 Mar 2007 21:41:06 -0000 1.790 +++ modules/node/node.module 15 Mar 2007 15:39:38 -0000 @@ -1063,7 +1063,7 @@ function _node_revision_access($node) { */ function node_menu() { $items['admin/content'] = array( - 'title' => t('Content management'), + 'title' => 'Content management', 'description' => t("Manage your site's content."), 'position' => 'left', 'weight' => -10, @@ -1072,21 +1072,21 @@ function node_menu() { ); $items['admin/content/node'] = array( - 'title' => t('Content'), + 'title' => 'Content', 'description' => t("View, edit, and delete your site's content."), 'page callback' => 'node_admin_content', 'access arguments' => array('administer nodes'), ); $items['admin/content/node/overview'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); if (module_exists('search')) { $items['admin/content/search'] = array( - 'title' => t('Search content'), + 'title' => 'Search content', 'description' => t('Search content by keyword.'), 'page callback' => 'node_admin_search', 'access arguments' => array('administer nodes'), @@ -1094,49 +1094,49 @@ function node_menu() { } $items['admin/content/node-settings'] = array( - 'title' => t('Post settings'), + 'title' => 'Post settings', 'description' => t('Control posting behavior, such as teaser length, requiring previews before posting, and the number of posts on the front page.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('node_configure'), 'access arguments' => array('administer nodes'), ); $items['admin/content/node-settings/rebuild'] = array( - 'title' => t('rebuild permissions'), + 'title' => 'Rebuild permissions', 'page arguments' => array('node_configure_rebuild_confirm'), 'type' => MENU_CALLBACK, ); $items['admin/content/types'] = array( - 'title' => t('Content types'), + 'title' => 'Content types', 'description' => t('Manage posts by content type, including default status, front page promotion, etc.'), 'page callback' => 'node_overview_types', 'access arguments' => array('administer content types'), ); $items['admin/content/types/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/content/types/add'] = array( - 'title' => t('Add content type'), + 'title' => 'Add content type', 'page callback' => 'drupal_get_form', 'page arguments' => array('node_type_form'), 'type' => MENU_LOCAL_TASK, ); $items['node'] = array( - 'title' => t('Content'), + 'title' => 'Content', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), 'type' => MENU_MODIFIABLE_BY_ADMIN, ); $items['node/add'] = array( - 'title' => t('Create content'), + 'title' => 'Create content', 'page callback' => 'node_add', 'access callback' => '_node_add_access', 'weight' => 1, ); $items['rss.xml'] = array( - 'title' => t('RSS feed'), + 'title' => 'RSS feed', 'page callback' => 'node_feed', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, @@ -1152,13 +1152,13 @@ function node_menu() { 'access arguments' => array('create', $type->type), ); $items['admin/content/types/'. $type_url_str] = array( - 'title' => t($type->name), + 'title' => $type->name, 'page callback' => 'drupal_get_form', 'page arguments' => array('node_type_form', $type), 'type' => MENU_CALLBACK, ); $items['admin/content/types/'. $type_url_str .'/delete'] = array( - 'title' => t('Delete'), + 'title' => 'Delete', 'page arguments' => array('node_type_delete_confirm', $type), 'type' => MENU_CALLBACK, ); @@ -1166,32 +1166,32 @@ function node_menu() { } } $items['node/%node'] = array( - 'title' => t('View'), + 'title' => 'View', 'page callback' => 'node_page_view', 'page arguments' => array(1), 'access callback' => 'node_access', 'access arguments' => array('view', 1), 'type' => MENU_CALLBACK); $items['node/%node/view'] = array( - 'title' => t('View'), + 'title' => 'View', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items['node/%node/edit'] = array( - 'title' => t('Edit'), + 'title' => 'Edit', 'page callback' => 'node_page_edit', 'page arguments' => array(1), 'access arguments' => array('update', 1), 'weight' => 1, 'type' => MENU_LOCAL_TASK); $items['node/%node/delete'] = array( - 'title' => t('Delete'), + 'title' => 'Delete', 'page callback' => 'drupal_get_form', 'page arguments' => array('node_delete_confirm', 1), 'access arguments' => array('delete', 1), 'weight' => 1, 'type' => MENU_CALLBACK); $items['node/%node/revisions'] = array( - 'title' => t('Revisions'), + 'title' => 'Revisions', 'page callback' => 'node_revisions', 'access callback' => '_node_revision_access', 'access arguments' => array(1), Index: modules/path/path.module =================================================================== RCS file: /cvs/drupal/drupal/modules/path/path.module,v retrieving revision 1.109 diff -u -p -r1.109 path.module --- modules/path/path.module 12 Mar 2007 13:01:10 -0000 1.109 +++ modules/path/path.module 15 Mar 2007 15:39:38 -0000 @@ -37,30 +37,30 @@ function path_help($section) { */ function path_menu() { $items['admin/build/path'] = array( - 'title' => t('URL aliases'), + 'title' => 'URL aliases', 'description' => t('Change your site\'s URL paths by aliasing them.'), 'page callback' => 'path_admin', 'access arguments' => array('administer url aliases'), ); $items['admin/build/path/edit'] = array( - 'title' => t('Edit alias'), + 'title' => 'Edit alias', 'page callback' => 'drupal_get_form', 'page arguments' => array('path_admin_edit'), 'type' => MENU_CALLBACK, ); $items['admin/build/path/delete'] = array( - 'title' => t('Delete alias'), + 'title' => 'Delete alias', 'page callback' => 'drupal_get_form', 'page arguments' => array('path_admin_delete_confirm'), 'type' => MENU_CALLBACK, ); $items['admin/build/path/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/build/path/add'] = array( - 'title' => t('Add alias'), + 'title' => 'Add alias', 'page callback' => 'drupal_get_form', 'page arguments' => array('path_admin_edit'), 'access arguments' => array('administer url aliases'), Index: modules/poll/poll.module =================================================================== RCS file: /cvs/drupal/drupal/modules/poll/poll.module,v retrieving revision 1.224 diff -u -p -r1.224 poll.module --- modules/poll/poll.module 11 Feb 2007 09:30:51 -0000 1.224 +++ modules/poll/poll.module 15 Mar 2007 15:39:38 -0000 @@ -233,21 +233,21 @@ function _poll_menu_access($node, $perm, */ function poll_menu() { $items['poll'] = array( - 'title' => t('Polls'), + 'title' => 'Polls', 'page callback' => 'poll_page', 'access arguments' => array('access content'), 'type' => MENU_SUGGESTED_ITEM, ); $items['poll/cancel/%node'] = array( - 'title' => t('Cancel'), + 'title' => 'Cancel', 'page callback' => 'poll_cancel', 'page arguments' => array(2), 'access arguments' => array('cancel own vote'), 'type' => MENU_CALLBACK, ); $items['node/%node/votes'] = array( - 'title' => t('Votes'), + 'title' => 'Votes', 'page callback' => 'poll_votes', 'access callback' => '_poll_menu_access', 'access arguments' => array(1, 'inspect all votes', FALSE), @@ -255,7 +255,7 @@ function poll_menu() { 'type' => MENU_LOCAL_TASK, ); $items['node/%node/results'] = array( - 'title' => t('Results'), + 'title' => 'Results', 'page callback' => 'poll_results', 'access callback' => '_poll_menu_access', 'access arguments' => array(1, 'access content', TRUE), Index: modules/profile/profile.module =================================================================== RCS file: /cvs/drupal/drupal/modules/profile/profile.module,v retrieving revision 1.194 diff -u -p -r1.194 profile.module --- modules/profile/profile.module 11 Feb 2007 09:30:51 -0000 1.194 +++ modules/profile/profile.module 15 Mar 2007 15:39:38 -0000 @@ -56,41 +56,41 @@ function profile_help($section) { */ function profile_menu() { $items['profile'] = array( - 'title' => t('User list'), + 'title' => 'User list', 'page callback' => 'profile_browse', 'access arguments' => array('access user profiles'), 'type' => MENU_SUGGESTED_ITEM, ); $items['admin/user/profile'] = array( - 'title' => t('Profiles'), + 'title' => 'Profiles', 'description' => t('Create customizable fields for your users.'), 'page callback' => 'profile_admin_overview', ); $items['admin/user/profile/add'] = array( - 'title' => t('Add field'), + 'title' => 'Add field', 'page callback' => 'drupal_get_form', 'page arguments' => array('profile_field_form'), 'type' => MENU_CALLBACK, ); $items['admin/user/profile/autocomplete'] = array( - 'title' => t('Profile category autocomplete'), + 'title' => 'Profile category autocomplete', 'page callback' => 'profile_admin_settings_autocomplete', 'type' => MENU_CALLBACK, ); $items['admin/user/profile/edit'] = array( - 'title' => t('Edit field'), + 'title' => 'Edit field', 'page callback' => 'drupal_get_form', 'page arguments' => array('profile_field_form'), 'type' => MENU_CALLBACK, ); $items['admin/user/profile/delete'] = array( - 'title' => t('Delete field'), + 'title' => 'Delete field', 'page callback' => 'drupal_get_form', 'page arguments' => array('profile_field_delete'), 'type' => MENU_CALLBACK, ); $items['profile/autocomplete'] = array( - 'title' => t('Profile autocomplete'), + 'title' => 'Profile autocomplete', 'page callback' => 'profile_autocomplete', 'access arguments' => array('access user profiles'), 'type' => MENU_CALLBACK, Index: modules/search/search.module =================================================================== RCS file: /cvs/drupal/drupal/modules/search/search.module,v retrieving revision 1.214 diff -u -p -r1.214 search.module --- modules/search/search.module 14 Mar 2007 18:30:38 -0000 1.214 +++ modules/search/search.module 15 Mar 2007 15:39:38 -0000 @@ -138,13 +138,13 @@ function search_block($op = 'list', $del */ function search_menu() { $items['search'] = array( - 'title' => t('Search'), + 'title' => 'Search', 'page callback' => 'search_view', 'access arguments' => array('search content'), 'type' => MENU_SUGGESTED_ITEM, ); $items['admin/settings/search'] = array( - 'title' => t('Search settings'), + 'title' => 'Search settings', 'description' => t('Configure relevance settings for search and other indexing options'), 'page callback' => 'drupal_get_form', 'page arguments' => array('search_admin_settings'), @@ -152,14 +152,14 @@ function search_menu() { 'type' => MENU_NORMAL_ITEM, ); $items['admin/settings/search/wipe'] = array( - 'title' => t('Clear index'), + 'title' => 'Clear index', 'page callback' => 'drupal_get_form', 'page arguments' => array('search_wipe_confirm'), 'access arguments' => array('administer search'), 'type' => MENU_CALLBACK, ); $items['admin/logs/search'] = array( - 'title' => t('Top search phrases'), + 'title' => 'Top search phrases', 'description' => t('View most popular search phrases.'), 'page callback' => 'watchdog_top', 'page arguments' => array('search'), @@ -167,7 +167,8 @@ function search_menu() { foreach (module_implements('search') as $name) { $items['search/'. $name .'/%'] = array( - 'title' => module_invoke($name, 'search', 'name', TRUE), + 'title callback' => 'module_invoke', + 'title arguments' => array($name, 'search', 'name', TRUE), 'page callback' => 'search_view', 'page arguments' => array($name), 'access callback' => '_search_menu', Index: modules/statistics/statistics.module =================================================================== RCS file: /cvs/drupal/drupal/modules/statistics/statistics.module,v retrieving revision 1.254 diff -u -p -r1.254 statistics.module --- modules/statistics/statistics.module 27 Feb 2007 12:29:22 -0000 1.254 +++ modules/statistics/statistics.module 15 Mar 2007 15:39:38 -0000 @@ -101,33 +101,33 @@ function statistics_link($type, $node = */ function statistics_menu() { $items['admin/logs/hits'] = array( - 'title' => t('Recent hits'), + 'title' => 'Recent hits', 'description' => t('View pages that have recently been visited.'), 'page callback' => 'statistics_recent_hits', 'access arguments' => array('access statistics'), ); $items['admin/logs/pages'] = array( - 'title' => t('Top pages'), + 'title' => 'Top pages', 'description' => t('View pages that have been hit frequently.'), 'page callback' => 'statistics_top_pages', 'access arguments' => array('access statistics'), 'weight' => 1, ); $items['admin/logs/visitors'] = array( - 'title' => t('Top visitors'), + 'title' => 'Top visitors', 'description' => t('View visitors that hit many pages.'), 'page callback' => 'statistics_top_visitors', 'access arguments' => array('access statistics'), 'weight' => 2, ); $items['admin/logs/referrers'] = array( - 'title' => t('Top referrers'), + 'title' => 'Top referrers', 'description' => t('View top referrers.'), 'page callback' => 'statistics_top_referrers', 'access arguments' => array('access statistics'), ); $items['admin/logs/access/%'] = array( - 'title' => t('Details'), + 'title' => 'Details', 'description' => t('View access log.'), 'page callback' => 'statistics_access_log', 'page arguments' => array(3), @@ -135,7 +135,7 @@ function statistics_menu() { 'type' => MENU_CALLBACK, ); $items['admin/logs/settings'] = array( - 'title' => t('Access log settings'), + 'title' => 'Access log settings', 'description' => t('Control details about what and how your site logs.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('statistics_access_logging_settings'), @@ -144,7 +144,7 @@ function statistics_menu() { 'weight' => 3, ); $items['user/%user/track/navigation'] = array( - 'title' => t('Track page visits'), + 'title' => 'Track page visits', 'page callback' => 'statistics_user_tracker', 'access callback' => 'user_access', 'access arguments' => array('access statistics'), @@ -152,7 +152,7 @@ function statistics_menu() { 'weight' => 2, ); $items['node/%node/track'] = array( - 'title' => t('Track'), + 'title' => 'Track', 'page callback' => 'statistics_node_tracker', 'access callback' => 'user_access', 'access arguments' => array('access statistics'), Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.83 diff -u -p -r1.83 system.install --- modules/system/system.install 12 Mar 2007 13:01:10 -0000 1.83 +++ modules/system/system.install 15 Mar 2007 15:39:38 -0000 @@ -338,6 +338,8 @@ function system_install() { access_arguments text, page_callback varchar(255) NOT NULL default '', page_arguments text, + title_callback varchar(255) NOT NULL default '', + title_arguments text, fit int NOT NULL default 0, number_parts int NOT NULL default 0, mleft int NOT NULL default 0, @@ -821,6 +823,8 @@ function system_install() { access_arguments text, page_callback varchar(255) NOT NULL default '', page_arguments text, + title_callback varchar(255) NOT NULL default '', + title_arguments text, fit int NOT NULL default 0, number_parts int NOT NULL default 0, mleft int NOT NULL default 0, Index: modules/system/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.module,v retrieving revision 1.456 diff -u -p -r1.456 system.module --- modules/system/system.module 15 Mar 2007 15:10:38 -0000 1.456 +++ modules/system/system.module 15 Mar 2007 15:39:38 -0000 @@ -88,36 +88,36 @@ function system_elements() { */ function system_menu() { $items['system/files'] = array( - 'title' => t('File download'), + 'title' => 'File download', 'page callback' => 'file_download', 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['admin'] = array( - 'title' => t('Administer'), + 'title' => 'Administer', 'access arguments' => array('access administration pages'), 'page callback' => 'system_main_admin_page', 'weight' => 9, ); $items['admin/compact'] = array( - 'title' => t('Compact mode'), + 'title' => 'Compact mode', 'page callback' => 'system_admin_compact_page', 'type' => MENU_CALLBACK, ); $items['admin/by-task'] = array( - 'title' => t('By task'), + 'title' => 'By task', 'page callback' => 'system_main_admin_page', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['admin/by-module'] = array( - 'title' => t('By module'), + 'title' => 'By module', 'page callback' => 'system_admin_by_module', 'type' => MENU_LOCAL_TASK, 'weight' => 2, ); // menu items that are basically just menu blocks $items['admin/settings'] = array( - 'title' => t('Site configuration'), + 'title' => 'Site configuration', 'description' => t('Adjust basic site configuration options.'), 'position' => 'right', 'weight' => -5, @@ -125,7 +125,7 @@ function system_menu() { 'access arguments' => array('administer site configuration'), ); $items['admin/build'] = array( - 'title' => t('Site building'), + 'title' => 'Site building', 'description' => t('Control how your site looks and feels.'), 'position' => 'right', 'weight' => -10, @@ -133,7 +133,7 @@ function system_menu() { 'access arguments' => array('administer site configuration'), ); $items['admin/settings/admin'] = array( - 'title' => t('Administration theme'), + 'title' => 'Administration theme', 'description' => t('Settings for how your administrative pages should look.'), 'position' => 'left', 'page callback' => 'drupal_get_form', @@ -142,25 +142,25 @@ function system_menu() { ); // Themes: $items['admin/build/themes'] = array( - 'title' => t('Themes'), + 'title' => 'Themes', 'description' => t('Change which theme your site uses or allows users to set.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_themes'), ); $items['admin/build/themes/select'] = array( - 'title' => t('List'), + 'title' => 'List', 'description' => t('Select the default theme.'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1, ); $items['admin/build/themes/settings'] = array( - 'title' => t('Configure'), + 'title' => 'Configure', 'page arguments' => array('system_theme_settings'), 'type' => MENU_LOCAL_TASK, ); // Theme configuration subtabs $items['admin/build/themes/settings/global'] = array( - 'title' => t('Global settings'), + 'title' => 'Global settings', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1, ); @@ -177,80 +177,80 @@ function system_menu() { // Modules: $items['admin/build/modules'] = array( - 'title' => t('Modules'), + 'title' => 'Modules', 'description' => t('Enable or disable add-on modules for your site.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_modules'), ); $items['admin/build/modules/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['admin/build/modules/list/confirm'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_CALLBACK, ); $items['admin/build/modules/uninstall'] = array( - 'title' => t('Uninstall'), + 'title' => 'Uninstall', 'page arguments' => array('system_modules_uninstall'), 'type' => MENU_LOCAL_TASK, ); $items['admin/build/modules/uninstall/confirm'] = array( - 'title' => t('Uninstall'), + 'title' => 'Uninstall', 'type' => MENU_CALLBACK, ); // Settings: $items['admin/settings/site-information'] = array( - 'title' => t('Site information'), + 'title' => 'Site information', 'description' => t('Change basic site information, such as the site name, slogan, e-mail address, mission, front page and more.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_site_information_settings'), ); $items['admin/settings/error-reporting'] = array( - 'title' => t('Error reporting'), + 'title' => 'Error reporting', 'description' => t('Control how Drupal deals with errors including 403/404 errors as well as PHP error reporting.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_error_reporting_settings'), ); $items['admin/settings/performance'] = array( - 'title' => t('Performance'), + 'title' => 'Performance', 'description' => t('Enable or disable page caching for anonymous users, and enable or disable CSS preprocessor.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_performance_settings'), ); $items['admin/settings/file-system'] = array( - 'title' => t('File system'), + 'title' => 'File system', 'description' => t('Tell Drupal where to store uploaded files and how they are accessed.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_file_system_settings'), ); $items['admin/settings/image-toolkit'] = array( - 'title' => t('Image toolkit'), + 'title' => 'Image toolkit', 'description' => t('Choose which image toolkit to use if you have installed optional toolkits.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_image_toolkit_settings'), ); $items['admin/content/rss-publishing'] = array( - 'title' => t('RSS publishing'), + 'title' => 'RSS publishing', 'description' => t('Configure the number of items per feed and whether feeds should be titles/teasers/full-text.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_rss_feeds_settings'), ); $items['admin/settings/date-time'] = array( - 'title' => t('Date and time'), + 'title' => 'Date and time', 'description' => t("Settings for how Drupal displays date and time, as well as the system's default timezone."), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_date_time_settings'), ); $items['admin/settings/site-maintenance'] = array( - 'title' => t('Site maintenance'), + 'title' => 'Site maintenance', 'description' => t('Take the site off-line for maintenance or bring it back online.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_site_maintenance_settings'), ); $items['admin/settings/clean-urls'] = array( - 'title' => t('Clean URLs'), + 'title' => 'Clean URLs', 'description' => t('Enable or disable clean URLs for your site.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('system_clean_url_settings'), @@ -258,31 +258,31 @@ function system_menu() { // Logs: $items['admin/logs'] = array( - 'title' => t('Logs'), + 'title' => 'Logs', 'description' => t('View system logs and other status information.'), 'page callback' => 'system_admin_menu_block_page', 'weight' => 5, 'position' => 'left', ); $items['admin/logs/status'] = array( - 'title' => t('Status report'), + 'title' => 'Status report', 'description' => t("Get a status report about your site's operation and any detected problems."), 'page callback' => 'system_status', 'weight' => 10, 'access arguments' => array('administer site configuration'), ); $items['admin/logs/status/run-cron'] = array( - 'title' => t('Run cron'), + 'title' => 'Run cron', 'page callback' => 'system_run_cron', 'type' => MENU_CALLBACK, ); $items['admin/logs/status/php'] = array( - 'title' => t('PHP'), + 'title' => 'PHP', 'page callback' => 'system_php', 'type' => MENU_CALLBACK, ); $items['admin/logs/status/sql'] = array( - 'title' => t('SQL'), + 'title' => 'SQL', 'page callback' => 'system_sql', 'type' => MENU_CALLBACK, ); Index: modules/taxonomy/taxonomy.module =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.module,v retrieving revision 1.341 diff -u -p -r1.341 taxonomy.module --- modules/taxonomy/taxonomy.module 27 Feb 2007 12:48:33 -0000 1.341 +++ modules/taxonomy/taxonomy.module 15 Mar 2007 15:39:38 -0000 @@ -71,20 +71,20 @@ function taxonomy_term_path($term) { */ function taxonomy_menu() { $items['admin/content/taxonomy'] = array( - 'title' => t('Categories'), + 'title' => 'Categories', 'description' => t('Create vocabularies and terms to categorize your content.'), 'page callback' => 'taxonomy_overview_vocabularies', 'access arguments' => array('administer taxonomy'), ); $items['admin/content/taxonomy/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/content/taxonomy/add/vocabulary'] = array( - 'title' => t('Add vocabulary'), + 'title' => 'Add vocabulary', 'page callback' => 'drupal_get_form', 'page arguments' => array('taxonomy_form_vocabulary'), 'type' => MENU_LOCAL_TASK, @@ -92,33 +92,33 @@ function taxonomy_menu() { ); $items['admin/content/taxonomy/edit/vocabulary/%taxonomy_vocabulary'] = array( - 'title' => t('Edit vocabulary'), + 'title' => 'Edit vocabulary', 'page callback' => 'taxonomy_admin_vocabulary_edit', 'page arguments' => array(5), 'type' => MENU_CALLBACK, ); $items['admin/content/taxonomy/edit/term'] = array( - 'title' => t('Edit term'), + 'title' => 'Edit term', 'page callback' => 'taxonomy_admin_term_edit', 'type' => MENU_CALLBACK, ); $items['taxonomy/term'] = array( - 'title' => t('Taxonomy term'), + 'title' => 'Taxonomy term', 'page callback' => 'taxonomy_term_page', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ); $items['taxonomy/autocomplete'] = array( - 'title' => t('Autocomplete taxonomy'), + 'title' => 'Autocomplete taxonomy', 'page callback' => 'taxonomy_autocomplete', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ); $items['admin/content/taxonomy/%taxonomy_vocabulary'] = array( - 'title' => t('List terms'), + 'title' => 'List terms', 'page callback' => 'taxonomy_overview_terms', 'page arguments' => array(3), 'access arguments' => array('administer taxonomy'), @@ -126,13 +126,13 @@ function taxonomy_menu() { ); $items['admin/content/taxonomy/%taxonomy_vocabulary/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/content/taxonomy/%taxonomy_vocabulary/add/term'] = array( - 'title' => t('Add term'), + 'title' => 'Add term', 'page callback' => 'drupal_get_form', 'page arguments' => array('taxonomy_form_term', 3), 'type' => MENU_LOCAL_TASK, Index: modules/throttle/throttle.module =================================================================== RCS file: /cvs/drupal/drupal/modules/throttle/throttle.module,v retrieving revision 1.73 diff -u -p -r1.73 throttle.module --- modules/throttle/throttle.module 24 Jan 2007 14:48:36 -0000 1.73 +++ modules/throttle/throttle.module 15 Mar 2007 15:39:38 -0000 @@ -8,8 +8,8 @@ function throttle_menu() { $items['admin/settings/throttle'] = array( + 'title' => 'Throttle', 'description' => t('Control how your site cuts out content during heavy load.'), - 'title' => t('Throttle'), 'page callback' => 'drupal_get_form', 'page arguments' => array('throttle_admin_settings'), 'access arguments' => array('administer site configuration'), Index: modules/tracker/tracker.module =================================================================== RCS file: /cvs/drupal/drupal/modules/tracker/tracker.module,v retrieving revision 1.146 diff -u -p -r1.146 tracker.module --- modules/tracker/tracker.module 15 Feb 2007 11:40:18 -0000 1.146 +++ modules/tracker/tracker.module 15 Mar 2007 15:39:38 -0000 @@ -24,34 +24,34 @@ function tracker_help($section) { */ function tracker_menu() { $items['tracker'] = array( - 'title' => t('Recent posts'), + 'title' => 'Recent posts', 'page callback' => 'tracker_page', 'access arguments' => array('access content'), 'weight' => 1, ); $items['tracker/all'] = array( - 'title' => t('All recent posts'), + 'title' => 'All recent posts', 'type' => MENU_DEFAULT_LOCAL_TASK, 'access callback' => 'user_is_logged_in', ); $items['tracker/%user_current'] = array( - 'title' => t('My recent posts'), + 'title' => 'My recent posts', 'type' => MENU_LOCAL_TASK, 'access callback' => 'user_is_logged_in', 'access arguments' => array(1), ); $items['user/%user/track'] = array( - 'title' => t('Track'), + 'title' => 'Track', 'page callback' => 'tracker_track_user', 'access callback' => 'user_access', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_TASK, ); $items['user/%user/track/posts'] = array( - 'title' => t('Track posts'), + 'title' => 'Track posts', 'type' => MENU_DEFAULT_LOCAL_TASK, ); return $items; Index: modules/upload/upload.module =================================================================== RCS file: /cvs/drupal/drupal/modules/upload/upload.module,v retrieving revision 1.154 diff -u -p -r1.154 upload.module --- modules/upload/upload.module 6 Mar 2007 16:43:10 -0000 1.154 +++ modules/upload/upload.module 15 Mar 2007 15:39:38 -0000 @@ -66,7 +66,7 @@ function upload_menu() { 'type' => MENU_CALLBACK, ); $items['admin/settings/uploads'] = array( - 'title' => t('File uploads'), + 'title' => 'File uploads', 'description' => t('Control how files may be attached to content.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('upload_admin_settings'), Index: modules/user/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.module,v retrieving revision 1.758 diff -u -p -r1.758 user.module --- modules/user/user.module 8 Mar 2007 19:03:48 -0000 1.758 +++ modules/user/user.module 15 Mar 2007 15:39:38 -0000 @@ -722,7 +722,7 @@ function user_load_self($arg) { */ function user_menu() { $items['user/autocomplete'] = array( - 'title' => t('User autocomplete'), + 'title' => 'User autocomplete', 'page callback' => 'user_autocomplete', 'access callback' => 'user_access', 'access arguments' => array('access user profiles'), @@ -731,7 +731,7 @@ function user_menu() { // Registration and login pages. $items['user'] = array( - 'title' => t('Log in'), + 'title' => 'Log in', 'page callback' => 'drupal_get_form', 'page arguments' => array('user_login'), 'access callback' => 'user_is_anonymous', @@ -739,12 +739,12 @@ function user_menu() { ); $items['user/login'] = array( - 'title' => t('Log in'), + 'title' => 'Log in', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['user/register'] = array( - 'title' => t('Create new account'), + 'title' => 'Create new account', 'page callback' => 'drupal_get_form', 'page arguments' => array('user_register'), 'access callback' => 'user_register_access', @@ -752,51 +752,51 @@ function user_menu() { ); $items['user/password'] = array( - 'title' => t('Request new password'), + 'title' => 'Request new password', 'page callback' => 'drupal_get_form', 'page arguments' => array('user_pass'), 'access callback' => 'user_is_anonymous', 'type' => MENU_LOCAL_TASK, ); $items['user/reset/%/%/%'] = array( - 'title' => t('Reset password'), + 'title' => 'Reset password', 'page callback' => 'drupal_get_form', 'page arguments' => array('user_pass_reset', 2, 3, 4), 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['user/help'] = array( - 'title' => t('Help'), + 'title' => 'Help', 'page callback' => 'user_help_page', 'type' => MENU_CALLBACK, ); // Admin user pages $items['admin/user'] = array( - 'title' => t('User management'), + 'title' => 'User management', 'description' => t('Manage your site\'s users, groups and access to site features.'), 'position' => 'left', 'page callback' => 'system_admin_menu_block_page', 'access arguments' => array('administer site configuration'), ); $items['admin/user/user'] = array( - 'title' => t('Users'), + 'title' => 'Users', 'description' => t('List, add, and edit users.'), 'page callback' => 'user_admin', 'page arguments' => array('list'), 'access arguments' => array('administer users')); $items['admin/user/user/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/user/user/create'] = array( - 'title' => t('Add user'), + 'title' => 'Add user', 'page arguments' => array('create'), 'type' => MENU_LOCAL_TASK, ); $items['admin/user/settings'] = array( - 'title' => t('User settings'), + 'title' => 'User settings', 'description' => t('Configure default behavior of users, including registration requirements, e-mails, and user pictures.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('user_admin_settings'), @@ -804,52 +804,52 @@ function user_menu() { // Admin access pages $items['admin/user/access'] = array( - 'title' => t('Access control'), + 'title' => 'Access control', 'description' => t('Determine access to features by selecting permissions for roles.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('user_admin_perm'), 'access arguments' => array('administer access control'), ); $items['admin/user/roles'] = array( - 'title' => t('Roles'), + 'title' => 'Roles', 'description' => t('List, edit, or add user roles.'), 'page callback' => 'drupal_get_form', 'page arguments' => array('user_admin_new_role'), 'access arguments' => array('administer access control'), ); $items['admin/user/roles/edit'] = array( - 'title' => t('Edit role'), + 'title' => 'Edit role', 'page arguments' => array('user_admin_role'), 'type' => MENU_CALLBACK, ); $items['admin/user/rules'] = array( - 'title' => t('Access rules'), + 'title' => 'Access rules', 'description' => t('List and create rules to disallow usernames, e-mail addresses, and IP addresses.'), 'page callback' => 'user_admin_access', 'access arguments' => array('administer access control'), ); $items['admin/user/rules/list'] = array( - 'title' => t('List'), + 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['admin/user/rules/add'] = array( - 'title' => t('Add rule'), + 'title' => 'Add rule', 'page callback' => 'user_admin_access_add', 'type' => MENU_LOCAL_TASK, ); $items['admin/user/rules/check'] = array( - 'title' => t('Check rules'), + 'title' => 'Check rules', 'page callback' => 'user_admin_access_check', 'type' => MENU_LOCAL_TASK, ); $items['admin/user/rules/edit'] = array( - 'title' => t('Edit rule'), + 'title' => 'Edit rule', 'page callback' => 'user_admin_access_edit', 'type' => MENU_CALLBACK, ); $items['admin/user/rules/delete'] = array( - 'title' => t('Delete rule'), + 'title' => 'Delete rule', 'page callback' => 'drupal_get_form', 'page arguments' => array('user_admin_access_delete_confirm'), 'type' => MENU_CALLBACK, @@ -857,7 +857,7 @@ function user_menu() { if (module_exists('search')) { $items['admin/user/search'] = array( - 'title' => t('Search users'), + 'title' => 'Search users', 'description' => t('Search users by name.'), 'page callback' => 'user_admin', 'page arguments' => array('search'), @@ -866,14 +866,14 @@ function user_menu() { } $items['logout'] = array( - 'title' => t('Log out'), + 'title' => 'Log out', 'access callback' => 'user_is_logged_in', 'page callback' => 'user_logout', 'weight' => 10, ); $items['user/%user_current'] = array( - 'title' => t('My account'), + 'title' => 'My account', 'page callback' => 'user_view', 'page arguments' => array(1), 'access callback' => 'user_view_access', @@ -882,13 +882,13 @@ function user_menu() { ); $items['user/%user/view'] = array( - 'title' => t('View'), + 'title' => 'View', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['user/%user/delete'] = array( - 'title' => t('Delete'), + 'title' => 'Delete', 'page callback' => 'user_edit', 'access callback' => 'user_access', 'access arguments' => array('administer users'), @@ -896,7 +896,7 @@ function user_menu() { ); $items['user/%user/edit'] = array( - 'title' => t('Edit'), + 'title' => 'Edit', 'page callback' => 'drupal_get_form', 'page arguments' => array('user_edit'), 'access callback' => 'user_edit_access', @@ -908,7 +908,8 @@ function user_menu() { if (($categories = _user_categories($empty_account)) && (count($categories) > 1)) { foreach ($categories as $key => $category) { $items['user/%user/edit/'. $category['name']] = array( - 'title' => $category['title'], + 'title callback' => 'check_plain', + 'title arguments' => array($category['title']), 'page arguments' => array('user_edit', 3), 'type' => $category['name'] == 'account' ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK, 'weight' => $category['weight'], Index: modules/watchdog/watchdog.module =================================================================== RCS file: /cvs/drupal/drupal/modules/watchdog/watchdog.module,v retrieving revision 1.171 diff -u -p -r1.171 watchdog.module --- modules/watchdog/watchdog.module 27 Feb 2007 12:29:22 -0000 1.171 +++ modules/watchdog/watchdog.module 15 Mar 2007 15:39:39 -0000 @@ -32,25 +32,25 @@ function watchdog_help($section) { */ function watchdog_menu() { $items['admin/logs/watchdog'] = array( - 'title' => t('Recent log entries'), + 'title' => 'Recent log entries', 'description' => t('View events that have recently been logged.'), 'page callback' => 'watchdog_overview', 'weight' => -1, ); $items['admin/logs/page-not-found'] = array( - 'title' => t("Top 'page not found' errors"), + 'title' => "Top 'page not found' errors", 'description' => t("View 'page not found' errors (404s)."), 'page callback' => 'watchdog_top', 'page arguments' => array('page not found'), ); $items['admin/logs/access-denied'] = array( - 'title' => t("Top 'access denied' errors"), + 'title' => "Top 'access denied' errors", 'description' => t("View 'access denied' errors (403s)."), 'page callback' => 'watchdog_top', 'page arguments' => array('access denied'), ); $items['admin/logs/event/%'] = array( - 'title' => t('Details'), + 'title' => 'Details', 'page callback' => 'watchdog_event', 'page arguments' => array(3), 'type' => MENU_CALLBACK,