Use proper pluralization of pending sync message.

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
This commit is contained in:
Vedanshu Jain 2023-07-11 18:43:33 +05:30 committed by GitHub
parent bdffe69340
commit ffb20eb7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -511,7 +511,12 @@ class CustomOrdersTableController {
} elseif ( $sync_status['current_pending_count'] > 0 ) {
$sync_message = sprintf(
// translators: %d: number of pending orders.
__( 'Sync %d pending orders. You can switch data storage for orders only when posts and orders table are in sync.', 'woocommerce' ),
_n(
'Sync %d pending order. You can switch data storage for orders only when posts and orders table are in sync.', 'woocommerce' ),
'Sync %d pending orders. You can switch data storage for orders only when posts and orders table are in sync.', 'woocommerce' ),
$sync_status['current_pending_count'],
'woocommerce'
),
$sync_status['current_pending_count']
);
}