my-account change strintf to printf

Add translators comment

Per new Woo template files;
This commit is contained in:
Unknown 2018-03-22 14:35:38 -06:00 committed by zachary
parent ff5dbf64e2
commit bd3928f396
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,10 @@ if ( $customer_orders ) : ?>
<?php echo esc_html( wc_get_order_status_name( $order->get_status() ) ); ?>
<?php elseif ( 'order-total' === $column_id ) : ?>
<?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'understrap' ), $order->get_formatted_order_total(), $item_count ); ?>
<?php
/* translators: 1: formatted order total 2: total order items */
printf( _n( '%1$s for %2$s item', '%1$s for %2$s items', $item_count, 'understrap' ), $order->get_formatted_order_total(), $item_count );
?>
<?php elseif ( 'order-actions' === $column_id ) : ?>
<?php