Make WordPress Core


Ignore:
Timestamp:
10/10/2017 09:03:38 PM (7 years ago)
Author:
westonruter
Message:

Customize: Fix string translations for singular vs plural after [41812].

Props felipeelia, tobifjellner, SergeyBiryukov.
See #42112.
Fixes #42170.

File:
1 edited

Legend:

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

    r41812 r41816  
    415415                /* translators: %s:      menu location */
    416416                'menuLocation'           => _x( '(Currently set to: %s)', 'menu' ),
    417                 'locationsTitle'         => _n( 'Menu Location', 'Menu Locations', $num_locations ),
     417                'locationsTitle'         => 1 === $num_locations ? __( 'Menu Location' ) : __( 'Menu Locations' ),
    418418                'locationsDescription'   => $locations_description,
    419419                'menuNameLabel'          => __( 'Menu Name' ),
     
    585585
    586586        $this->manager->add_section( 'menu_locations', array(
    587             'title'       => _nx( 'View Location', 'View All Locations', $num_locations, 'menu locations' ),
     587            'title'       => 1 === $num_locations ? _x( 'View Location', 'menu locations' ) : _x( 'View All Locations', 'menu locations' ),
    588588            'panel'       => 'nav_menus',
    589589            'priority'    => 30,
    590             'description' => $description
     590            'description' => $description,
    591591        ) );
    592592
Note: See TracChangeset for help on using the changeset viewer.