From d43cd90cb37f10530e9a262e692ca46217a278c3 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 5 Mar 2018 16:44:56 -0300 Subject: [PATCH] Fixed PHPCS violations on i18n directory --- i18n/continents.php | 6 ++-- i18n/countries.php | 6 ++-- i18n/locale-info.php | 43 +++++++++++++++------------ i18n/states/AO.php | 7 ++--- i18n/states/AR.php | 7 ++--- i18n/states/AU.php | 7 ++--- i18n/states/BD.php | 7 ++--- i18n/states/BG.php | 7 ++--- i18n/states/BO.php | 7 ++--- i18n/states/BR.php | 7 ++--- i18n/states/CA.php | 7 ++--- i18n/states/CH.php | 3 +- i18n/states/CN.php | 7 ++--- i18n/states/ES.php | 7 ++--- i18n/states/GR.php | 7 ++--- i18n/states/HK.php | 7 ++--- i18n/states/HU.php | 7 ++--- i18n/states/ID.php | 7 ++--- i18n/states/IE.php | 9 +++--- i18n/states/IN.php | 7 ++--- i18n/states/IR.php | 7 ++--- i18n/states/IT.php | 7 ++--- i18n/states/JP.php | 7 ++--- i18n/states/MX.php | 7 ++--- i18n/states/MY.php | 7 ++--- i18n/states/NG.php | 6 ++-- i18n/states/NP.php | 7 ++--- i18n/states/NZ.php | 7 ++--- i18n/states/PE.php | 7 ++--- i18n/states/PH.php | 8 ++--- i18n/states/PK.php | 7 ++--- i18n/states/TH.php | 7 ++--- i18n/states/TR.php | 7 ++--- i18n/states/TZ.php | 70 ++++++++++++++++++++++---------------------- i18n/states/US.php | 7 ++--- i18n/states/ZA.php | 7 ++--- phpcs.xml | 3 ++ 37 files changed, 162 insertions(+), 188 deletions(-) diff --git a/i18n/continents.php b/i18n/continents.php index 9b0162d4de9..e32fefc0bd3 100644 --- a/i18n/continents.php +++ b/i18n/continents.php @@ -4,10 +4,8 @@ * * Returns an array of continents. * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.5.0 + * @package WooCommerce/i18n + * @version 2.5.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/countries.php b/i18n/countries.php index 5ed3a806e53..fea8fc6a3c5 100644 --- a/i18n/countries.php +++ b/i18n/countries.php @@ -4,10 +4,8 @@ * * Returns an array of countries and codes. * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.5.0 + * @package WooCommerce/i18n + * @version 2.5.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/locale-info.php b/i18n/locale-info.php index 7bfefc5c93b..6c8ba6dbc47 100644 --- a/i18n/locale-info.php +++ b/i18n/locale-info.php @@ -1,4 +1,11 @@ 'cm', 'tax_rates' => array( '' => array( - array( + array( 'country' => 'BE', 'state' => '', 'rate' => '21.0000', @@ -123,7 +130,7 @@ return array( 'priority' => 2, ), ), - '*' => array( + '*' => array( array( 'country' => 'CA', 'state' => 'ON', @@ -300,19 +307,19 @@ return array( ), 'GB' => array( 'currency_code' => 'GBP', - 'currency_pos' => 'left', - 'thousand_sep' => ',', - 'decimal_sep' => '.', - 'num_decimals' => 2, - 'weight_unit' => 'kg', + 'currency_pos' => 'left', + 'thousand_sep' => ',', + 'decimal_sep' => '.', + 'num_decimals' => 2, + 'weight_unit' => 'kg', 'dimension_unit' => 'cm', - 'tax_rates' => array( + 'tax_rates' => array( '' => array( array( 'country' => 'GB', - 'state' => '', - 'rate' => '20.0000', - 'name' => 'VAT', + 'state' => '', + 'rate' => '20.0000', + 'name' => 'VAT', 'shipping' => true, ), ), @@ -468,7 +475,7 @@ return array( 'dimension_unit' => 'cm', 'tax_rates' => array( '' => array( - array( + array( 'country' => 'PL', 'state' => '', 'rate' => '23.0000', @@ -540,13 +547,13 @@ return array( ), 'US' => array( 'currency_code' => 'USD', - 'currency_pos' => 'left', - 'thousand_sep' => ',', - 'decimal_sep' => '.', - 'num_decimals' => 2, - 'weight_unit' => 'oz', + 'currency_pos' => 'left', + 'thousand_sep' => ',', + 'decimal_sep' => '.', + 'num_decimals' => 2, + 'weight_unit' => 'oz', 'dimension_unit' => 'in', - 'tax_rates' => array( + 'tax_rates' => array( 'AL' => array( array( 'country' => 'US', diff --git a/i18n/states/AO.php b/i18n/states/AO.php index c0a4847afdf..1571c28d75c 100644 --- a/i18n/states/AO.php +++ b/i18n/states/AO.php @@ -2,11 +2,10 @@ /** * Angola states * - * @author Marcio Zebedeu - * @category i18n - * @package WooCommerce/i18n - * @version 1.0.0 + * @package WooCommerce/i18n + * @version 1.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/AR.php b/i18n/states/AR.php index d3536578d93..20e01a86f99 100644 --- a/i18n/states/AR.php +++ b/i18n/states/AR.php @@ -2,11 +2,10 @@ /** * Argentinian provinces * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.4.0 + * @package WooCommerce/i18n + * @version 2.4.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/AU.php b/i18n/states/AU.php index fd671306a75..36735eaa225 100644 --- a/i18n/states/AU.php +++ b/i18n/states/AU.php @@ -2,11 +2,10 @@ /** * Australian states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/BD.php b/i18n/states/BD.php index c89eb48e5a7..22103f8e5bf 100644 --- a/i18n/states/BD.php +++ b/i18n/states/BD.php @@ -2,11 +2,10 @@ /** * Bangladeshi states (districts) * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/BG.php b/i18n/states/BG.php index e0129cddf6a..f17b90845ed 100644 --- a/i18n/states/BG.php +++ b/i18n/states/BG.php @@ -2,11 +2,10 @@ /** * Bulgarian states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/BO.php b/i18n/states/BO.php index 5359fe1a772..2962f587862 100644 --- a/i18n/states/BO.php +++ b/i18n/states/BO.php @@ -2,11 +2,10 @@ /** * Bolivian states * - * @author Roman Random - * @category i18n - * @package WooCommerce/i18n - * @version 3.1.0 + * @package WooCommerce/i18n + * @version 3.1.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/BR.php b/i18n/states/BR.php index 69cabbd5a7c..4d6c4656744 100644 --- a/i18n/states/BR.php +++ b/i18n/states/BR.php @@ -2,11 +2,10 @@ /** * Brazillian states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/CA.php b/i18n/states/CA.php index 7021b75cb88..a6fccea2e37 100644 --- a/i18n/states/CA.php +++ b/i18n/states/CA.php @@ -2,11 +2,10 @@ /** * Canadian states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/CH.php b/i18n/states/CH.php index ca0b4fbf8d9..fdf2f70f1ed 100644 --- a/i18n/states/CH.php +++ b/i18n/states/CH.php @@ -2,11 +2,10 @@ /** * Cantons of Switzerland * - * @author WooCommerce - * @category i18n * @package WooCommerce/i18n * @version 3.2.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/CN.php b/i18n/states/CN.php index 7ea0e7b91b7..c1605b67c40 100644 --- a/i18n/states/CN.php +++ b/i18n/states/CN.php @@ -2,11 +2,10 @@ /** * Chinese states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/ES.php b/i18n/states/ES.php index de251b5c124..6f888c634b7 100644 --- a/i18n/states/ES.php +++ b/i18n/states/ES.php @@ -2,11 +2,10 @@ /** * Spain states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.11 + * @package WooCommerce/i18n + * @version 2.0.11 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/GR.php b/i18n/states/GR.php index a3b82c28774..e53ec8989be 100644 --- a/i18n/states/GR.php +++ b/i18n/states/GR.php @@ -2,11 +2,10 @@ /** * Greek Regions * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.3.0 + * @package WooCommerce/i18n + * @version 2.3.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/HK.php b/i18n/states/HK.php index f6033b8600e..cafa3619f36 100644 --- a/i18n/states/HK.php +++ b/i18n/states/HK.php @@ -2,11 +2,10 @@ /** * Hong Kong states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/HU.php b/i18n/states/HU.php index e544f4d15fa..255e58fa26a 100644 --- a/i18n/states/HU.php +++ b/i18n/states/HU.php @@ -2,11 +2,10 @@ /** * Hungary states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/ID.php b/i18n/states/ID.php index 9b133cb6fca..44ac816d43d 100644 --- a/i18n/states/ID.php +++ b/i18n/states/ID.php @@ -2,11 +2,10 @@ /** * Indonesia Provinces * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/IE.php b/i18n/states/IE.php index b4d8a980150..ca507f8ee0c 100644 --- a/i18n/states/IE.php +++ b/i18n/states/IE.php @@ -2,11 +2,10 @@ /** * Republic of Ireland * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 3.0.0 + * @package WooCommerce/i18n + * @version 3.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { @@ -39,5 +38,5 @@ $states['IE'] = array( 'WD' => __( 'Waterford', 'woocommerce' ), 'WH' => __( 'Westmeath', 'woocommerce' ), 'WX' => __( 'Wexford', 'woocommerce' ), - 'WW' => __( 'Wicklow', 'woocommerce' ) + 'WW' => __( 'Wicklow', 'woocommerce' ), ); diff --git a/i18n/states/IN.php b/i18n/states/IN.php index 1ebff4fdcfc..dbf77c15127 100644 --- a/i18n/states/IN.php +++ b/i18n/states/IN.php @@ -2,11 +2,10 @@ /** * Indian states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/IR.php b/i18n/states/IR.php index 05094b7e399..aeecb4496c3 100644 --- a/i18n/states/IR.php +++ b/i18n/states/IR.php @@ -2,11 +2,10 @@ /** * Iran States * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.2.3 + * @package WooCommerce/i18n + * @version 2.2.3 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/IT.php b/i18n/states/IT.php index 9aaae7a1974..db5de5de01e 100644 --- a/i18n/states/IT.php +++ b/i18n/states/IT.php @@ -2,11 +2,10 @@ /** * Italy Provinces * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/JP.php b/i18n/states/JP.php index 4e56d137f96..d625c80212c 100644 --- a/i18n/states/JP.php +++ b/i18n/states/JP.php @@ -2,14 +2,13 @@ /** * Japan States * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 * * English notation of prefectures conform to the notation of Japan Post. * The suffix corresponds with the Japanese translation file. */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/MX.php b/i18n/states/MX.php index 203cfc743c1..88385054575 100644 --- a/i18n/states/MX.php +++ b/i18n/states/MX.php @@ -2,11 +2,10 @@ /** * Mexico States * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.2.9 + * @package WooCommerce/i18n + * @version 2.2.9 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/MY.php b/i18n/states/MY.php index 82d4465d882..51ad05cd2e3 100644 --- a/i18n/states/MY.php +++ b/i18n/states/MY.php @@ -2,11 +2,10 @@ /** * Malaysian states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/NG.php b/i18n/states/NG.php index 6ce4e1c5a12..83ec2ccdc26 100644 --- a/i18n/states/NG.php +++ b/i18n/states/NG.php @@ -2,10 +2,8 @@ /** * Nigerian provinces * - * @author hoshomoh - * @category i18n - * @package WooCommerce/i18n - * @version 3.0.0 + * @package WooCommerce/i18n + * @version 3.0.0 */ global $states; diff --git a/i18n/states/NP.php b/i18n/states/NP.php index 89d2347bacf..95b6e1d27b8 100644 --- a/i18n/states/NP.php +++ b/i18n/states/NP.php @@ -2,11 +2,10 @@ /** * Nepal states (Zones) * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.2.5 + * @package WooCommerce/i18n + * @version 2.2.5 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/NZ.php b/i18n/states/NZ.php index 515a1db4ab2..2b93cffffc4 100644 --- a/i18n/states/NZ.php +++ b/i18n/states/NZ.php @@ -2,11 +2,10 @@ /** * New Zealand States * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.3.0 + * @package WooCommerce/i18n + * @version 2.3.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/PE.php b/i18n/states/PE.php index 0ceb8f5abab..73e316873f8 100644 --- a/i18n/states/PE.php +++ b/i18n/states/PE.php @@ -2,11 +2,10 @@ /** * Peru states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.1.0 + * @package WooCommerce/i18n + * @version 2.1.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/PH.php b/i18n/states/PH.php index 13cbcb0ef60..28a51a7c23e 100644 --- a/i18n/states/PH.php +++ b/i18n/states/PH.php @@ -2,10 +2,10 @@ /** * Philippines Provinces * - * @category i18n - * @package WooCommerce/i18n - * @version 2.4.0 + * @package WooCommerce/i18n + * @version 2.4.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { @@ -42,7 +42,7 @@ $states['PH'] = array( 'NCO' => __( 'Cotabato', 'woocommerce' ), 'DAV' => __( 'Davao del Norte', 'woocommerce' ), 'DAS' => __( 'Davao del Sur', 'woocommerce' ), - 'DAC' => __( 'Davao Occidental', 'woocommerce' ), // TODO: Needs to be updated when ISO code is assigned + 'DAC' => __( 'Davao Occidental', 'woocommerce' ), // TODO: Needs to be updated when ISO code is assigned. 'DAO' => __( 'Davao Oriental', 'woocommerce' ), 'DIN' => __( 'Dinagat Islands', 'woocommerce' ), 'EAS' => __( 'Eastern Samar', 'woocommerce' ), diff --git a/i18n/states/PK.php b/i18n/states/PK.php index edbd75f633f..a55a3c6c1c4 100644 --- a/i18n/states/PK.php +++ b/i18n/states/PK.php @@ -2,11 +2,10 @@ /** * Pakistan's states * - * @author WooCommerce - * @category i18n - * @package WooCommerce/i18n - * @version 3.0.0 + * @package WooCommerce/i18n + * @version 3.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/TH.php b/i18n/states/TH.php index ec82fa5c63e..23bac1c45dc 100644 --- a/i18n/states/TH.php +++ b/i18n/states/TH.php @@ -2,11 +2,10 @@ /** * Thailand states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/TR.php b/i18n/states/TR.php index bbffc2e6d8d..9808494b1e7 100644 --- a/i18n/states/TR.php +++ b/i18n/states/TR.php @@ -2,11 +2,10 @@ /** * Turkey States * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/TZ.php b/i18n/states/TZ.php index dfd8cce60be..7119bcdb53d 100644 --- a/i18n/states/TZ.php +++ b/i18n/states/TZ.php @@ -2,43 +2,43 @@ /** * Tanzania States * - * @author Lev and Mohsin @ Extreme Web Technologies Ltd - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 - * @notes Based on English names published at https://en.wikipedia.org/wiki/ISO_3166-2:TZ + * Based on English names published at https://en.wikipedia.org/wiki/ISO_3166-2:TZ + * + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; $states['TZ'] = array( - 'TZ01' => __( 'Arusha', 'woocommerce' ), - 'TZ02' => __( 'Dar es Salaam', 'woocommerce' ), - 'TZ03' => __( 'Dodoma', 'woocommerce' ), - 'TZ04' => __( 'Iringa', 'woocommerce' ), - 'TZ05' => __( 'Kagera', 'woocommerce' ), - 'TZ06' => __( 'Pemba North', 'woocommerce' ), - 'TZ07' => __( 'Zanzibar North', 'woocommerce' ), - 'TZ08' => __( 'Kigoma', 'woocommerce' ), - 'TZ09' => __( 'Kilimanjaro', 'woocommerce' ), - 'TZ10' => __( 'Pemba South', 'woocommerce' ), - 'TZ11' => __( 'Zanzibar South', 'woocommerce' ), - 'TZ12' => __( 'Lindi', 'woocommerce' ), - 'TZ13' => __( 'Mara', 'woocommerce' ), - 'TZ14' => __( 'Mbeya', 'woocommerce' ), - 'TZ15' => __( 'Zanzibar West', 'woocommerce' ), - 'TZ16' => __( 'Morogoro', 'woocommerce' ), - 'TZ17' => __( 'Mtwara', 'woocommerce' ), - 'TZ18' => __( 'Mwanza', 'woocommerce' ), - 'TZ19' => __( 'Coast', 'woocommerce' ), - 'TZ20' => __( 'Rukwa', 'woocommerce' ), - 'TZ21' => __( 'Ruvuma', 'woocommerce' ), - 'TZ22' => __( 'Shinyanga', 'woocommerce' ), - 'TZ23' => __( 'Singida', 'woocommerce' ), - 'TZ24' => __( 'Tabora', 'woocommerce' ), - 'TZ25' => __( 'Tanga', 'woocommerce' ), - 'TZ26' => __( 'Manyara', 'woocommerce' ), - 'TZ27' => __( 'Geita', 'woocommerce' ), - 'TZ28' => __( 'Katavi', 'woocommerce' ), - 'TZ29' => __( 'Njombe', 'woocommerce' ), - 'TZ30' => __( 'Simiyu', 'woocommerce' ) + 'TZ01' => __( 'Arusha', 'woocommerce' ), + 'TZ02' => __( 'Dar es Salaam', 'woocommerce' ), + 'TZ03' => __( 'Dodoma', 'woocommerce' ), + 'TZ04' => __( 'Iringa', 'woocommerce' ), + 'TZ05' => __( 'Kagera', 'woocommerce' ), + 'TZ06' => __( 'Pemba North', 'woocommerce' ), + 'TZ07' => __( 'Zanzibar North', 'woocommerce' ), + 'TZ08' => __( 'Kigoma', 'woocommerce' ), + 'TZ09' => __( 'Kilimanjaro', 'woocommerce' ), + 'TZ10' => __( 'Pemba South', 'woocommerce' ), + 'TZ11' => __( 'Zanzibar South', 'woocommerce' ), + 'TZ12' => __( 'Lindi', 'woocommerce' ), + 'TZ13' => __( 'Mara', 'woocommerce' ), + 'TZ14' => __( 'Mbeya', 'woocommerce' ), + 'TZ15' => __( 'Zanzibar West', 'woocommerce' ), + 'TZ16' => __( 'Morogoro', 'woocommerce' ), + 'TZ17' => __( 'Mtwara', 'woocommerce' ), + 'TZ18' => __( 'Mwanza', 'woocommerce' ), + 'TZ19' => __( 'Coast', 'woocommerce' ), + 'TZ20' => __( 'Rukwa', 'woocommerce' ), + 'TZ21' => __( 'Ruvuma', 'woocommerce' ), + 'TZ22' => __( 'Shinyanga', 'woocommerce' ), + 'TZ23' => __( 'Singida', 'woocommerce' ), + 'TZ24' => __( 'Tabora', 'woocommerce' ), + 'TZ25' => __( 'Tanga', 'woocommerce' ), + 'TZ26' => __( 'Manyara', 'woocommerce' ), + 'TZ27' => __( 'Geita', 'woocommerce' ), + 'TZ28' => __( 'Katavi', 'woocommerce' ), + 'TZ29' => __( 'Njombe', 'woocommerce' ), + 'TZ30' => __( 'Simiyu', 'woocommerce' ), ); diff --git a/i18n/states/US.php b/i18n/states/US.php index a705e150196..ed9d6ff6c04 100644 --- a/i18n/states/US.php +++ b/i18n/states/US.php @@ -2,11 +2,10 @@ /** * United States * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/i18n/states/ZA.php b/i18n/states/ZA.php index e85e4fa44b4..f094ae4421e 100644 --- a/i18n/states/ZA.php +++ b/i18n/states/ZA.php @@ -2,11 +2,10 @@ /** * South African states * - * @author WooThemes - * @category i18n - * @package WooCommerce/i18n - * @version 2.0.0 + * @package WooCommerce/i18n + * @version 2.0.0 */ + global $states; if ( ! defined( 'ABSPATH' ) ) { diff --git a/phpcs.xml b/phpcs.xml index d3f458176e0..3ae9c2b8698 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -66,4 +66,7 @@ tests/e2e-tests/ + + i18n/ +