From dd64b5c8ff81668d0683adab06e63d077e94885f Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 23 Nov 2021 17:41:33 +0100 Subject: [PATCH] Bolivia: fix iso code / update label (#31181) * fix iso format of bolivian states * add label for states bolivia * change to english string * update sorting of states --- plugins/woocommerce/i18n/states.php | 18 +++++++++--------- .../includes/class-wc-countries.php | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/plugins/woocommerce/i18n/states.php b/plugins/woocommerce/i18n/states.php index d483cc40f7a..443264fc538 100644 --- a/plugins/woocommerce/i18n/states.php +++ b/plugins/woocommerce/i18n/states.php @@ -187,15 +187,15 @@ return array( 'ZO' => __( 'Zou', 'woocommerce' ), ), 'BO' => array( // Bolivian states. - 'B' => __( 'Chuquisaca', 'woocommerce' ), - 'H' => __( 'Beni', 'woocommerce' ), - 'C' => __( 'Cochabamba', 'woocommerce' ), - 'L' => __( 'La Paz', 'woocommerce' ), - 'O' => __( 'Oruro', 'woocommerce' ), - 'N' => __( 'Pando', 'woocommerce' ), - 'P' => __( 'Potosí', 'woocommerce' ), - 'S' => __( 'Santa Cruz', 'woocommerce' ), - 'T' => __( 'Tarija', 'woocommerce' ), + 'BO-B' => __( 'Beni', 'woocommerce' ), + 'BO-H' => __( 'Chuquisaca', 'woocommerce' ), + 'BO-C' => __( 'Cochabamba', 'woocommerce' ), + 'BO-L' => __( 'La Paz', 'woocommerce' ), + 'BO-O' => __( 'Oruro', 'woocommerce' ), + 'BO-N' => __( 'Pando', 'woocommerce' ), + 'BO-P' => __( 'Potosí', 'woocommerce' ), + 'BO-S' => __( 'Santa Cruz', 'woocommerce' ), + 'BO-T' => __( 'Tarija', 'woocommerce' ), ), 'BR' => array( // Brazillian states. 'AC' => __( 'Acre', 'woocommerce' ), diff --git a/plugins/woocommerce/includes/class-wc-countries.php b/plugins/woocommerce/includes/class-wc-countries.php index 34ca34d172d..11393e318bb 100644 --- a/plugins/woocommerce/includes/class-wc-countries.php +++ b/plugins/woocommerce/includes/class-wc-countries.php @@ -897,6 +897,9 @@ class WC_Countries { 'required' => false, 'hidden' => true, ), + 'state' => array( + 'label' => __( 'Department', 'woocommerce' ), + ), ), 'BS' => array( 'postcode' => array(