diff options
Diffstat (limited to 'includes/class-cepis-woo-messages.php')
| -rw-r--r-- | includes/class-cepis-woo-messages.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/class-cepis-woo-messages.php b/includes/class-cepis-woo-messages.php index 201fe4e..93d3279 100644 --- a/includes/class-cepis-woo-messages.php +++ b/includes/class-cepis-woo-messages.php @@ -16,6 +16,12 @@ defined( 'ABSPATH' ) || exit; * * Keys are the widget's status kinds and error codes. Anything not listed * keeps the widget's own wording. + * + * `not_found_range` and `not_found_city` are the exception: they are not + * status kinds the widget knows, but templates the plugin's own JavaScript + * fills in when the API says which municipality a missing CEP would have + * belonged to. They live in the same table so that one filter, one text domain + * and one `.po` file cover everything the shopper is told. */ final class Cepis_Woo_Messages { @@ -33,6 +39,10 @@ final class Cepis_Woo_Messages { 'loading' => __( 'Looking the address up…', 'cepis-woocommerce' ), 'found' => __( 'Address found.', 'cepis-woocommerce' ), 'not_found' => __( 'CEP not found. Check the number or fill the address in by hand.', 'cepis-woocommerce' ), + /* translators: 1: municipality, e.g. Areal. 2: state code, e.g. RJ. 3: lowest CEP that exists there, e.g. 25845-001. 4: highest CEP that exists there, e.g. 25849-899. */ + 'not_found_range' => __( 'CEP not found. This number would be in %1$s/%2$s, which has CEPs from %3$s to %4$s. Check the number.', 'cepis-woocommerce' ), + /* translators: 1: municipality, e.g. Areal. 2: state code, e.g. RJ. */ + 'not_found_city' => __( 'CEP not found. This number would be in %1$s/%2$s. Check the number.', 'cepis-woocommerce' ), 'invalid' => __( 'Invalid CEP. Type all 8 digits.', 'cepis-woocommerce' ), 'rate_limited' => __( 'Too many lookups in a short time. Wait a few seconds and try again.', 'cepis-woocommerce' ), 'server' => __( 'The CEP service is unavailable. Fill the address in by hand.', 'cepis-woocommerce' ), |