Fixed typo in translations context

When only one shipping package translation was not applied because of wrong context.
This commit is contained in:
andgrankin 2018-08-16 12:30:42 +07:00 committed by GitHub
parent ec0613ad78
commit 5bb55159a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ function wc_cart_totals_shipping_html() {
'show_shipping_calculator' => is_cart() && $first, 'show_shipping_calculator' => is_cart() && $first,
'package_details' => implode( ', ', $product_names ), 'package_details' => implode( ', ', $product_names ),
/* translators: %d: shipping package number */ /* translators: %d: shipping package number */
'package_name' => apply_filters( 'woocommerce_shipping_package_name', ( ( $i + 1 ) > 1 ) ? sprintf( _x( 'Shipping %d', 'shipping packages', 'woocommerce' ), ( $i + 1 ) ) : _x( 'Shipping', 'shipping package', 'woocommerce' ), $i, $package ), 'package_name' => apply_filters( 'woocommerce_shipping_package_name', ( ( $i + 1 ) > 1 ) ? sprintf( _x( 'Shipping %d', 'shipping packages', 'woocommerce' ), ( $i + 1 ) ) : _x( 'Shipping', 'shipping packages', 'woocommerce' ), $i, $package ),
'index' => $i, 'index' => $i,
'chosen_method' => $chosen_method, 'chosen_method' => $chosen_method,
'formatted_destination' => WC()->countries->get_formatted_address( $package['destination'], ', ' ), 'formatted_destination' => WC()->countries->get_formatted_address( $package['destination'], ', ' ),