Make WordPress Core

Changeset 31951


Ignore:
Timestamp:
04/01/2015 11:36:46 AM (10 years ago)
Author:
SergeyBiryukov
Message:

After [31941], use the decoupled strings from WP_Customize_Manager::register_controls() on the Menus screen.

see #28502.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/nav-menus.php

    r31927 r31951  
    563563    <?php
    564564    if ( $locations_screen ) :
    565         echo '<p>' . sprintf( _n( 'Your theme supports %s menu. Select which menu you would like to use.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . '</p>';
     565        if ( 1 == $num_locations ) {
     566            echo '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) . '</p>';
     567        } else {
     568            echo '<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 ) ) . '</p>';
     569        }
    566570    ?>
    567571    <div id="menu-locations-wrap">
Note: See TracChangeset for help on using the changeset viewer.