Make WordPress Core

Changeset 33741


Ignore:
Timestamp:
08/25/2015 09:52:45 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Customizer: Use existing decoupled strings in Menu Locations section. See [31941] and [31951].

props egill.
fixes #33416.

File:
1 edited

Legend:

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

    r33602 r33741  
    465465        $menus = wp_get_nav_menus();
    466466
    467         // Menu loactions.
     467        // Menu locations.
    468468        $locations     = get_registered_nav_menus();
    469469        $num_locations = count( array_keys( $locations ) );
    470         $description   = '<p>' . sprintf( _n( 'Your theme contains %s menu location. Select which menu you would like to use.', 'Your theme contains %s menu locations. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) );
     470        if ( 1 == $num_locations ) {
     471            $description = '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' );
     472        } else {
     473            $description = '<p>' . sprintf( _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) );
     474        }
    471475        $description  .= '</p><p>' . __( 'You can also place menus in widget areas with the Custom Menu widget.' ) . '</p>';
    472476
Note: See TracChangeset for help on using the changeset viewer.