From fe8fa477e859628dd181b7a6e5f6732f1c6649ed Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Thu, 27 Oct 2016 00:58:46 +0300 Subject: [PATCH] Fix test error (#12193) * i18n: simpler translation strings * i18n: simpler translation strings * i18n: readble printf(), and moving the %s placeholder to `%s product` * i18n: make string translatable and remove the HTML tags * i18n: avoide using HTML tags in translatino strings * i18n: move the colon into the translation string and use %s placeholder for the IP * i18n: use sprintf() on field-validation translation strings, and unify those strings * i18n: move colons into the translation strings * i18n: use `%s` placeholder as the site name in "Powered by WooCommerce" string * i18n: use `%s` placeholder for min and max price * i18n: rewrite the translation strings printf() * Fix test error --- includes/class-wc-checkout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index ac6a4593dec..393e1a2b697 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -528,7 +528,7 @@ class WC_Checkout { // Only validate if the country has specific state options if ( ! empty( $valid_states ) && is_array( $valid_states ) && sizeof( $valid_states ) > 0 ) { if ( ! in_array( $this->posted[ $key ], array_keys( $valid_states ) ) ) { - wc_add_notice( sprintf( __( '%s is not valid. Please enter one of the following: %s', 'woocommerce' ), '' . $field['label'] . '', implode( ', ', $valid_states ) ), 'error' ); + wc_add_notice( sprintf( __( '%1$s is not valid. Please enter one of the following: %2$s', 'woocommerce' ), '' . $field['label'] . '', implode( ', ', $valid_states ) ), 'error' ); } } break;