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
This commit is contained in:
parent
0be4db2261
commit
fe8fa477e8
|
@ -528,7 +528,7 @@ class WC_Checkout {
|
||||||
// Only validate if the country has specific state options
|
// Only validate if the country has specific state options
|
||||||
if ( ! empty( $valid_states ) && is_array( $valid_states ) && sizeof( $valid_states ) > 0 ) {
|
if ( ! empty( $valid_states ) && is_array( $valid_states ) && sizeof( $valid_states ) > 0 ) {
|
||||||
if ( ! in_array( $this->posted[ $key ], array_keys( $valid_states ) ) ) {
|
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' ), '<strong>' . $field['label'] . '</strong>', implode( ', ', $valid_states ) ), 'error' );
|
wc_add_notice( sprintf( __( '%1$s is not valid. Please enter one of the following: %2$s', 'woocommerce' ), '<strong>' . $field['label'] . '</strong>', implode( ', ', $valid_states ) ), 'error' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue