Index: plugins/views_plugin_display_page.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/plugins/views_plugin_display_page.inc,v
retrieving revision 1.4
diff -u -p -r1.4 views_plugin_display_page.inc
--- plugins/views_plugin_display_page.inc	2 Dec 2008 16:45:00 -0000	1.4
+++ plugins/views_plugin_display_page.inc	22 Jan 2009 19:50:27 -0000
@@ -24,7 +24,8 @@ class views_plugin_display_page extends 
     $options['menu'] = array(
       'contains' => array(
         'type' => array('default' => 'none'),
-        'title' => array('default' => '', 'transleateable' => TRUE),
+        'title' => array('default' => '', 'translatable' => TRUE),
+        'description' => array('default' => '', 'translatable' => TRUE),
         'weight' => array('default' => 0),
         'name' => array('default' => 'navigation'),
        ),
@@ -32,7 +33,8 @@ class views_plugin_display_page extends 
     $options['tab_options'] = array(
       'contains' => array(
         'type' => array('default' => 'none'),
-        'title' => array('default' => '', 'transleateable' => TRUE),
+        'title' => array('default' => '', 'translatable' => TRUE),
+        'description' => array('default' => '', 'translatable' => TRUE),
         'weight' => array('default' => 0),
        ),
     );
@@ -79,9 +81,10 @@ class views_plugin_display_page extends 
       if (empty($menu)) {
         $menu = array('type' => 'none');
       }
-      // Set the title if we have one.
+      // Set the title and description if we have one.
       if ($menu['type'] != 'none') {
         $items[$path]['title'] = $menu['title'];
+        $items[$path]['description'] = $menu['description'];
       }
 
       if (isset($menu['weight'])) {
@@ -129,6 +132,7 @@ class views_plugin_display_page extends 
               // Identify URL embedded arguments and correlate them to a handler
               'load arguments'  => array($this->view->name, $this->display->id, '%index'),
               'title' => $tab_options['title'],
+              'description' => $tab_options['description'],
             );
             switch ($tab_options['type']) {
               default:
@@ -289,6 +293,14 @@ class views_plugin_display_page extends 
           '#process' => array('views_process_dependency'),
           '#dependency' => array('radio:menu[type]' => array('normal', 'tab', 'default tab')),
         );
+        $form['menu']['description'] = array(
+          '#title' => t('Description'),
+          '#type' => 'textfield',
+          '#default_value' => $menu['description'],
+          '#description' => t("If set to normal or tab, enter the text to use for the menu item's description."),
+          '#process' => array('views_process_dependency'),
+          '#dependency' => array('radio:menu[type]' => array('normal', 'tab', 'default tab')),
+        );
         $form['menu']['name-warning'] = array(
           '#type' => 'markup',
           '#prefix' => '<div class="warning">',
@@ -296,7 +308,7 @@ class views_plugin_display_page extends 
           '#suffix' => '</div>',
           '#process' => array('views_process_dependency'),
           '#dependency' => array('radio:menu[type]' => array('normal')),
-          '#access' => (VERSION < 6.5),
+          '#access' => version_compare(VERSION, '6.5', '<'),
         );
 
         // Only display the menu selector if menu module is enabled.
@@ -365,6 +377,14 @@ class views_plugin_display_page extends 
           '#process' => array('views_process_dependency'),
           '#dependency' => array('radio:tab_options[type]' => array('normal', 'tab')),
         );
+        $form['tab_options']['description'] = array(
+          '#title' => t('Description'),
+          '#type' => 'textfield',
+          '#default_value' => $tab_options['description'],
+          '#description' => t('If creating a parent menu item, enter the description of the item.'),
+          '#process' => array('views_process_dependency'),
+          '#dependency' => array('radio:tab_options[type]' => array('normal', 'tab')),
+        );
         $form['tab_options']['weight'] = array(
           '#suffix' => '</div>',
           '#title' => t('Tab weight'),
