[wp-trac] [WordPress Trac] #33416: Decouple menu location strings again
WordPress Trac
noreply at wordpress.org
Wed Aug 19 00:54:45 UTC 2015
#33416: Decouple menu location strings again
----------------------------+-----------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Customize | Version: 4.3
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------
[32806] brought back the string I removed in [31941] and [31951]:
{{{
$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 ) );
}}}
Should be replaced with:
{{{
if ( 1 == $num_locations ) {
$description = '<p>' . __( 'Your theme supports one menu. Select
which menu you would like to use.' );
} else {
$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 ) );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list