WordPress.org

Make WordPress Core

Ticket #9190: widgets.diff

File widgets.diff, 1.1 KB (added by mrmist, 9 years ago)
  • wp-admin/widgets.php

     
    192192
    193193// This is sort of lame since "widget" won't be converted to "widgets" in the JS
    194194if ( 1 < $sidebars_count = count($wp_registered_sidebars) )
    195         $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 );
     195        $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 );
    196196else
    197         $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 );
     197        $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 );
    198198
    199199
    200200$sidebar_info_text = sprintf( wp_specialchars( $sidebar_info_text ), "<span id='widget-count'>$sidebar_widget_count</span>", $wp_registered_sidebars[$sidebar]['name'] );