Ticket #42170: 42170.diff
| File 42170.diff, 2.1 KB (added by , 8 years ago) |
|---|
-
src/wp-includes/class-wp-customize-nav-menus.php
403 403 $locations_description = sprintf( _n( 'Your theme can display menus in %s location.', 'Your theme can display menus in %s locations.', $num_locations ), number_format_i18n( $num_locations ) ); 404 404 } 405 405 406 if ( 1 === $num_locations ) { 407 $locations_title = __( 'Menu Location' ); 408 } else { 409 $locations_title = __( 'Menu Locations' ); 410 } 411 406 412 // Pass data to JS. 407 413 $settings = array( 408 414 'allMenus' => wp_get_nav_menus(), … … 414 420 'page_label' => get_post_type_object( 'page' )->labels->singular_name, 415 421 /* translators: %s: menu location */ 416 422 'menuLocation' => _x( '(Currently set to: %s)', 'menu' ), 417 'locationsTitle' => _n( 'Menu Location', 'Menu Locations', $num_locations ),423 'locationsTitle' => $locations_title, 418 424 'locationsDescription' => $locations_description, 419 425 'menuNameLabel' => __( 'Menu Name' ), 420 426 'newMenuNameDescription' => __( 'If your theme has multiple menus, giving them clear names will help you manage them.' ), … … 583 589 $description .= '<p>' . sprintf( __( 'If your theme has widget areas, you can also add menus there. Visit the <a href="%s">Widgets panel</a> and add a “Custom Menu widget” to display a menu in a sidebar or footer.' ), "javascript:wp.customize.panel( 'widgets' ).focus();" ) . '</p>'; 584 590 } 585 591 592 if ( 1 === $num_locations ) { 593 $title = _x( 'View Location', 'menu locations' ); 594 } else { 595 $title = _x( 'View All Locations', 'menu locations' ); 596 } 597 586 598 $this->manager->add_section( 'menu_locations', array( 587 'title' => _nx( 'View Location', 'View All Locations', $num_locations, 'menu locations' ),599 'title' => $title, 588 600 'panel' => 'nav_menus', 589 601 'priority' => 30, 590 602 'description' => $description