mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Use _n(). Props mrmist. fixes #9190
git-svn-id: https://develop.svn.wordpress.org/trunk@10605 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -192,9 +192,9 @@ $sidebar_widget_count = count($sidebars_widgets[$sidebar]);
|
||||
|
||||
// This is sort of lame since "widget" won't be converted to "widgets" in the JS
|
||||
if ( 1 < $sidebars_count = count($wp_registered_sidebars) )
|
||||
$sidebar_info_text = __ngettext( 'You are using %1$s widget in the "%2$s" sidebar.', 'You are using %1$s widgets in the "%2$s" sidebar.', $sidebar_widget_count );
|
||||
$sidebar_info_text = _n( 'You are using %1$s widget in the "%2$s" sidebar.', 'You are using %1$s widgets in the "%2$s" sidebar.', $sidebar_widget_count );
|
||||
else
|
||||
$sidebar_info_text = __ngettext( 'You are using %1$s widget in the sidebar.', 'You are using %1$s widgets in the sidebar.', $sidebar_widget_count );
|
||||
$sidebar_info_text = _n( 'You are using %1$s widget in the sidebar.', 'You are using %1$s widgets in the sidebar.', $sidebar_widget_count );
|
||||
|
||||
|
||||
$sidebar_info_text = sprintf( wp_specialchars( $sidebar_info_text ), "<span id='widget-count'>$sidebar_widget_count</span>", $wp_registered_sidebars[$sidebar]['name'] );
|
||||
|
||||
Reference in New Issue
Block a user