Make WordPress Core

Changeset 41812


Ignore:
Timestamp:
10/10/2017 05:56:46 PM (9 years ago)
Author:
westonruter
Message:

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

Props felipeelia.
Fixes #42112.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r41810 r41812  
    415415                                /* translators: %s:      menu location */
    416416                                'menuLocation'           => _x( '(Currently set to: %s)', 'menu' ),
     417                                'locationsTitle'         => _n( 'Menu Location', 'Menu Locations', $num_locations ),
    417418                                'locationsDescription'   => $locations_description,
    418419                                'menuNameLabel'          => __( 'Menu Name' ),
    … …  
    584585
    585586                $this->manager->add_section( 'menu_locations', array(
    586                         'title'       => _x( 'View All Locations', 'menu locations' ),
     587                        'title'       => _nx( 'View Location', 'View All Locations', $num_locations, 'menu locations' ),
    587588                        'panel'       => 'nav_menus',
    588589                        'priority'    => 30,
    … …  
    946947
    947948                <script type="text/html" id="tmpl-nav-menu-locations-header">
    948                         <span class="customize-control-title customize-section-title-menu_locations-heading"><?php _e( 'Menu Locations' ); ?></span>
     949                        <span class="customize-control-title customize-section-title-menu_locations-heading">{{ data.l10n.locationsTitle }}</span>
    949950                        <p class="customize-control-description customize-section-title-menu_locations-description">{{ data.l10n.locationsDescription }}</p>
    950951                </script>
Note: See TracChangeset for help on using the changeset viewer.