Customize: Adjust "Menu Locations" labels for singular/plural.

Props felipeelia.
Fixes #42112.

Built from https://develop.svn.wordpress.org/trunk@41812


git-svn-id: http://core.svn.wordpress.org/trunk@41646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-10-10 17:57:48 +00:00
parent b17b035009
commit b36fa8ce9c
2 changed files with 4 additions and 3 deletions

View File

@ -414,6 +414,7 @@ final class WP_Customize_Nav_Menus {
'page_label' => get_post_type_object( 'page' )->labels->singular_name, 'page_label' => get_post_type_object( 'page' )->labels->singular_name,
/* translators: %s: menu location */ /* translators: %s: menu location */
'menuLocation' => _x( '(Currently set to: %s)', 'menu' ), 'menuLocation' => _x( '(Currently set to: %s)', 'menu' ),
'locationsTitle' => _n( 'Menu Location', 'Menu Locations', $num_locations ),
'locationsDescription' => $locations_description, 'locationsDescription' => $locations_description,
'menuNameLabel' => __( 'Menu Name' ), 'menuNameLabel' => __( 'Menu Name' ),
'newMenuNameDescription' => __( 'If your theme has multiple menus, giving them clear names will help you manage them.' ), 'newMenuNameDescription' => __( 'If your theme has multiple menus, giving them clear names will help you manage them.' ),
@ -583,7 +584,7 @@ final class WP_Customize_Nav_Menus {
} }
$this->manager->add_section( 'menu_locations', array( $this->manager->add_section( 'menu_locations', array(
'title' => _x( 'View All Locations', 'menu locations' ), 'title' => _nx( 'View Location', 'View All Locations', $num_locations, 'menu locations' ),
'panel' => 'nav_menus', 'panel' => 'nav_menus',
'priority' => 30, 'priority' => 30,
'description' => $description 'description' => $description
@ -945,7 +946,7 @@ final class WP_Customize_Nav_Menus {
</script> </script>
<script type="text/html" id="tmpl-nav-menu-locations-header"> <script type="text/html" id="tmpl-nav-menu-locations-header">
<span class="customize-control-title customize-section-title-menu_locations-heading"><?php _e( 'Menu Locations' ); ?></span> <span class="customize-control-title customize-section-title-menu_locations-heading">{{ data.l10n.locationsTitle }}</span>
<p class="customize-control-description customize-section-title-menu_locations-description">{{ data.l10n.locationsDescription }}</p> <p class="customize-control-description customize-section-title-menu_locations-description">{{ data.l10n.locationsDescription }}</p>
</script> </script>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9-beta1-41811'; $wp_version = '4.9-beta1-41812';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.