List Table: Add placeholder to a plural string.
props SergeyBiryukov. fixes #32034. git-svn-id: https://develop.svn.wordpress.org/trunk@32473 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3df6a4a9da
commit
ca2cd7405c
|
@ -686,7 +686,7 @@ class WP_List_Table {
|
||||||
$infinite_scroll = $this->_pagination_args['infinite_scroll'];
|
$infinite_scroll = $this->_pagination_args['infinite_scroll'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = '<span class="displaying-num">' . sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
|
$output = '<span class="displaying-num">' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
|
||||||
|
|
||||||
$current = $this->get_pagenum();
|
$current = $this->get_pagenum();
|
||||||
|
|
||||||
|
@ -1110,7 +1110,7 @@ class WP_List_Table {
|
||||||
|
|
||||||
if ( isset( $this->_pagination_args['total_items'] ) ) {
|
if ( isset( $this->_pagination_args['total_items'] ) ) {
|
||||||
$response['total_items_i18n'] = sprintf(
|
$response['total_items_i18n'] = sprintf(
|
||||||
_n( '1 item', '%s items', $this->_pagination_args['total_items'] ),
|
_n( '%s item', '%s items', $this->_pagination_args['total_items'] ),
|
||||||
number_format_i18n( $this->_pagination_args['total_items'] )
|
number_format_i18n( $this->_pagination_args['total_items'] )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue