WordPress.org

Make WordPress Core

Ticket #7900: menu.php.r9197.diff

File menu.php.r9197.diff, 2.8 KB (added by RanYanivHartstein, 6 years ago)

Add string descriptions for "Add New" links in crazyhorse main menu

  • menu.php

     
    3030$menu[4] = array( '', 'read', '', '', 'wp-menu-separator' ); 
    3131 
    3232$menu[5] = array( __('Posts'), 'edit_posts', 'post-new.php', '', 'wp-menu-open', 'menu-posts', 'images/menu/posts.png' ); 
    33         $submenu['post-new.php'][5]  = array( __('Add New'), 'edit_posts', 'post-new.php' ); 
     33        $submenu['post-new.php'][5]  = array( _c('Add New|post'), 'edit_posts', 'post-new.php' ); 
    3434        //$submenu['post-new.php'][10]  = array( __('Drafts'), 'edit_posts', 'edit-post-drafts.php' ); 
    3535        $submenu['post-new.php'][15]  = array( __('Edit'), 'edit_posts', 'edit.php' ); 
    3636        $submenu['post-new.php'][20] = array( __('Tags'), 'manage_categories', 'edit-tags.php' ); 
    3737        $submenu['post-new.php'][25] = array( __('Categories'), 'manage_categories', 'categories.php' ); 
    3838 
    3939$menu[10] = array( __('Media'), 'upload_files', 'media-new.php', '', '', 'menu-media', 'images/menu/media.png' ); 
    40         $submenu['media-new.php'][5] = array( __('Add New'), 'upload_files', 'media-new.php'); 
     40        $submenu['media-new.php'][5] = array( _c('Add New|file'), 'upload_files', 'media-new.php'); 
    4141        $submenu['media-new.php'][10] = array( __('Edit'), 'upload_files', 'upload.php'); 
    4242 
    4343$menu[15] = array( __('Links'), 'manage_links', 'link-add.php', '', '', 'menu-links', 'images/menu/links.png' ); 
    44         $submenu['link-add.php'][5] = array( __('Add New'), 'manage_links', 'link-add.php' ); 
     44        $submenu['link-add.php'][5] = array( _c('Add New|links'), 'manage_links', 'link-add.php' ); 
    4545        $submenu['link-add.php'][10] = array( __('Edit'), 'manage_links', 'link-manager.php' ); 
    4646        $submenu['link-add.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-link-categories.php' ); 
    4747 
    4848$menu[20] = array( __('Pages'), 'edit_pages', 'page-new.php', '', '', 'menu-pages', 'images/menu/pages.png' ); 
    49         $submenu['page-new.php'][5] = array( __('Add New'), 'edit_pages', 'page-new.php' ); 
     49        $submenu['page-new.php'][5] = array( _c('Add New|page'), 'edit_pages', 'page-new.php' ); 
    5050        //$submenu['page-new.php'][10] = array( __('Drafts'), 'edit_pages', 'edit-page-drafts.php' ); 
    5151        $submenu['page-new.php'][15] = array( __('Edit'), 'edit_pages', 'edit-pages.php' ); 
    5252 
     
    6060        $submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php'); 
    6161 
    6262$menu[35] = array( __('Plugins'), 'activate_plugins', 'plugins.php', '', '', 'menu-plugins', 'images/menu/plugins.png' ); 
    63         $submenu['plugins.php'][15] = array(__('Add New'), 'install_plugins', 'plugin-install.php');     
     63        $submenu['plugins.php'][15] = array(_c('Add New|plugin'), 'install_plugins', 'plugin-install.php');      
    6464        $submenu['plugins.php'][5]  = array( __('Installed'), 'activate_plugins', 'plugins.php' ); 
    6565        $submenu['plugins.php'][10] = array( __('Editor'), 'edit_plugins', 'plugin-editor.php' ); 
    6666