Spaces fixed
This commit is contained in:
parent
5de3d4d18b
commit
bc6cbfcadc
|
@ -1,7 +1,7 @@
|
|||
|
||||
<?php
|
||||
/**
|
||||
* Uganda States(Districts)
|
||||
* Uganda Districts
|
||||
*
|
||||
* Based on English names published at https://en.wikipedia.org/wiki/ISO_3166-2:UG
|
||||
*
|
||||
|
@ -11,133 +11,135 @@
|
|||
|
||||
global $states;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$states['UG'] = array(
|
||||
'UG314' => __('Abim','woocommerce'),
|
||||
'UG301' => __('Adjumani','woocommerce'),
|
||||
'UG322' => __('Agago','woocommerce'),
|
||||
'UG323' => __('Alebtong','woocommerce'),
|
||||
'UG315' => __('Amolatar','woocommerce'),
|
||||
'UG324' => __('Amudat','woocommerce'),
|
||||
'UG216' => __('Amuria','woocommerce'),
|
||||
'UG316' => __('Amuru','woocommerce'),
|
||||
'UG302' => __('Apac','woocommerce'),
|
||||
'UG303' => __('Arua','woocommerce'),
|
||||
'UG217' => __('Budaka','woocommerce'),
|
||||
'UG218' => __('Bududa','woocommerce'),
|
||||
'UG201' => __('Bugiri','woocommerce'),
|
||||
'UG235' => __('Bugweri','woocommerce'),
|
||||
'UG420' => __('Buhweju','woocommerce'),
|
||||
'UG117' => __('Buikwe','woocommerce'),
|
||||
'UG219' => __('Bukedea','woocommerce'),
|
||||
'UG118' => __('Bukomansimbi','woocommerce'),
|
||||
'UG220' => __('Bukwa','woocommerce'),
|
||||
'UG225' => __('Bulambuli','woocommerce'),
|
||||
'UG416' => __('Buliisa','woocommerce'),
|
||||
'UG401' => __('Bundibugyo','woocommerce'),
|
||||
'UG430' => __('Bunyangabu','woocommerce'),
|
||||
'UG402' => __('Bushenyi','woocommerce'),
|
||||
'UG202' => __('Busia','woocommerce'),
|
||||
'UG221' => __('Butaleja','woocommerce'),
|
||||
'UG119' => __('Butambala','woocommerce'),
|
||||
'UG233' => __('Butebo','woocommerce'),
|
||||
'UG120' => __('Buvuma','woocommerce'),
|
||||
'UG226' => __('Buyende','woocommerce'),
|
||||
'UG317' => __('Dokolo','woocommerce'),
|
||||
'UG121' => __('Gomba','woocommerce'),
|
||||
'UG304' => __('Gulu','woocommerce'),
|
||||
'UG403' => __('Hoima','woocommerce'),
|
||||
'UG417' => __('Ibanda','woocommerce'),
|
||||
'UG203' => __('Iganga','woocommerce'),
|
||||
'UG418' => __('Isingiro','woocommerce'),
|
||||
'UG204' => __('Jinja','woocommerce'),
|
||||
'UG318' => __('Kaabong','woocommerce'),
|
||||
'UG404' => __('Kabale','woocommerce'),
|
||||
'UG405' => __('Kabarole','woocommerce'),
|
||||
'UG213' => __('Kaberamaido','woocommerce'),
|
||||
'UG427' => __('Kagadi','woocommerce'),
|
||||
'UG428' => __('Kakumiro','woocommerce'),
|
||||
'UG101' => __('Kalangala','woocommerce'),
|
||||
'UG222' => __('Kaliro','woocommerce'),
|
||||
'UG122' => __('Kalungu','woocommerce'),
|
||||
'UG102' => __('Kampala','woocommerce'),
|
||||
'UG205' => __('Kamuli','woocommerce'),
|
||||
'UG413' => __('Kamwenge','woocommerce'),
|
||||
'UG414' => __('Kanungu','woocommerce'),
|
||||
'UG206' => __('Kapchorwa','woocommerce'),
|
||||
'UG236' => __('Kapelebyong','woocommerce'),
|
||||
'UG126' => __('Kasanda','woocommerce'),
|
||||
'UG406' => __('Kasese','woocommerce'),
|
||||
'UG207' => __('Katakwi','woocommerce'),
|
||||
'UG112' => __('Kayunga','woocommerce'),
|
||||
'UG407' => __('Kibaale','woocommerce'),
|
||||
'UG103' => __('Kiboga','woocommerce'),
|
||||
'UG227' => __('Kibuku','woocommerce'),
|
||||
'UG432' => __('Kikuube','woocommerce'),
|
||||
'UG419' => __('Kiruhura','woocommerce'),
|
||||
'UG421' => __('Kiryandongo','woocommerce'),
|
||||
'UG408' => __('Kisoro','woocommerce'),
|
||||
'UG305' => __('Kitgum','woocommerce'),
|
||||
'UG319' => __('Koboko','woocommerce'),
|
||||
'UG325' => __('Kole','woocommerce'),
|
||||
'UG306' => __('Kotido','woocommerce'),
|
||||
'UG208' => __('Kumi','woocommerce'),
|
||||
'UG333' => __('Kwania','woocommerce'),
|
||||
'UG228' => __('Kween','woocommerce'),
|
||||
'UG123' => __('Kyankwanzi','woocommerce'),
|
||||
'UG422' => __('Kyegegwa','woocommerce'),
|
||||
'UG415' => __('Kyenjojo','woocommerce'),
|
||||
'UG125' => __('Kyotera','woocommerce'),
|
||||
'UG326' => __('Lamwo','woocommerce'),
|
||||
'UG307' => __('Lira','woocommerce'),
|
||||
'UG229' => __('Luuka','woocommerce'),
|
||||
'UG104' => __('Luwero','woocommerce'),
|
||||
'UG124' => __('Lwengo','woocommerce'),
|
||||
'UG114' => __('Lyantonde','woocommerce'),
|
||||
'UG223' => __('Manafwa','woocommerce'),
|
||||
'UG320' => __('Maracha','woocommerce'),
|
||||
'UG105' => __('Masaka','woocommerce'),
|
||||
'UG409' => __('Masindi','woocommerce'),
|
||||
'UG214' => __('Mayuge','woocommerce'),
|
||||
'UG209' => __('Mbale','woocommerce'),
|
||||
'UG410' => __('Mbarara','woocommerce'),
|
||||
'UG423' => __('Mitooma','woocommerce'),
|
||||
'UG115' => __('Mityana','woocommerce'),
|
||||
'UG308' => __('Moroto','woocommerce'),
|
||||
'UG309' => __('Moyo','woocommerce'),
|
||||
'UG106' => __('Mpigi','woocommerce'),
|
||||
'UG107' => __('Mubende','woocommerce'),
|
||||
'UG108' => __('Mukono','woocommerce'),
|
||||
'UG334' => __('Nabilatuk','woocommerce'),
|
||||
'UG311' => __('Nakapiripirit','woocommerce'),
|
||||
'UG116' => __('Nakaseke','woocommerce'),
|
||||
'UG109' => __('Nakasongola','woocommerce'),
|
||||
'UG230' => __('Namayingo','woocommerce'),
|
||||
'UG234' => __('Namisindwa','woocommerce'),
|
||||
'UG224' => __('Namutumba','woocommerce'),
|
||||
'UG327' => __('Napak','woocommerce'),
|
||||
'UG310' => __('Nebbi','woocommerce'),
|
||||
'UG231' => __('Ngora','woocommerce'),
|
||||
'UG424' => __('Ntoroko','woocommerce'),
|
||||
'UG411' => __('Ntungamo','woocommerce'),
|
||||
'UG328' => __('Nwoya','woocommerce'),
|
||||
'UG331' => __('Omoro','woocommerce'),
|
||||
'UG329' => __('Otuke','woocommerce'),
|
||||
'UG321' => __('Oyam','woocommerce'),
|
||||
'UG312' => __('Pader','woocommerce'),
|
||||
'UG332' => __('Pakwach','woocommerce'),
|
||||
'UG210' => __('Pallisa','woocommerce'),
|
||||
'UG110' => __('Rakai','woocommerce'),
|
||||
'UG429' => __('Rubanda','woocommerce'),
|
||||
'UG425' => __('Rubirizi','woocommerce'),
|
||||
'UG431' => __('Rukiga','woocommerce'),
|
||||
'UG412' => __('Rukungiri','woocommerce'),
|
||||
'UG111' => __('Sembabule','woocommerce'),
|
||||
'UG232' => __('Serere','woocommerce'),
|
||||
'UG426' => __('Sheema','woocommerce'),
|
||||
'UG215' => __('Sironko','woocommerce'),
|
||||
'UG211' => __('Soroti','woocommerce'),
|
||||
'UG212' => __('Tororo','woocommerce'),
|
||||
'UG113' => __('Wakiso','woocommerce'),
|
||||
'UG313' => __('Yumbe','woocommerce'),
|
||||
'UG330' => __('Zombo','woocommerce'),
|
||||
'UG314' => __( 'Abim', 'woocommerce' ),
|
||||
'UG301' => __( 'Adjumani', 'woocommerce' ),
|
||||
'UG322' => __( 'Agago', 'woocommerce' ),
|
||||
'UG323' => __( 'Alebtong', 'woocommerce' ),
|
||||
'UG315' => __( 'Amolatar', 'woocommerce' ),
|
||||
'UG324' => __( 'Amudat', 'woocommerce' ),
|
||||
'UG216' => __( 'Amuria', 'woocommerce' ),
|
||||
'UG316' => __( 'Amuru', 'woocommerce' ),
|
||||
'UG302' => __( 'Apac', 'woocommerce' ),
|
||||
'UG303' => __( 'Arua', 'woocommerce' ),
|
||||
'UG217' => __( 'Budaka', 'woocommerce' ),
|
||||
'UG218' => __( 'Bududa', 'woocommerce' ),
|
||||
'UG201' => __( 'Bugiri', 'woocommerce' ),
|
||||
'UG235' => __( 'Bugweri', 'woocommerce' ),
|
||||
'UG420' => __( 'Buhweju', 'woocommerce' ),
|
||||
'UG117' => __( 'Buikwe', 'woocommerce' ),
|
||||
'UG219' => __( 'Bukedea', 'woocommerce' ),
|
||||
'UG118' => __( 'Bukomansimbi', 'woocommerce' ),
|
||||
'UG220' => __( 'Bukwa', 'woocommerce' ),
|
||||
'UG225' => __( 'Bulambuli', 'woocommerce' ),
|
||||
'UG416' => __( 'Buliisa', 'woocommerce' ),
|
||||
'UG401' => __( 'Bundibugyo', 'woocommerce' ),
|
||||
'UG430' => __( 'Bunyangabu', 'woocommerce' ),
|
||||
'UG402' => __( 'Bushenyi', 'woocommerce' ),
|
||||
'UG202' => __( 'Busia', 'woocommerce' ),
|
||||
'UG221' => __( 'Butaleja', 'woocommerce' ),
|
||||
'UG119' => __( 'Butambala', 'woocommerce' ),
|
||||
'UG233' => __( 'Butebo', 'woocommerce' ),
|
||||
'UG120' => __( 'Buvuma', 'woocommerce' ),
|
||||
'UG226' => __( 'Buyende', 'woocommerce' ),
|
||||
'UG317' => __( 'Dokolo', 'woocommerce' ),
|
||||
'UG121' => __( 'Gomba', 'woocommerce' ),
|
||||
'UG304' => __( 'Gulu', 'woocommerce' ),
|
||||
'UG403' => __( 'Hoima', 'woocommerce' ),
|
||||
'UG417' => __( 'Ibanda', 'woocommerce' ),
|
||||
'UG203' => __( 'Iganga', 'woocommerce' ),
|
||||
'UG418' => __( 'Isingiro', 'woocommerce' ),
|
||||
'UG204' => __( 'Jinja', 'woocommerce' ),
|
||||
'UG318' => __( 'Kaabong', 'woocommerce' ),
|
||||
'UG404' => __( 'Kabale', 'woocommerce' ),
|
||||
'UG405' => __( 'Kabarole', 'woocommerce' ),
|
||||
'UG213' => __( 'Kaberamaido', 'woocommerce' ),
|
||||
'UG427' => __( 'Kagadi', 'woocommerce' ),
|
||||
'UG428' => __( 'Kakumiro', 'woocommerce' ),
|
||||
'UG101' => __( 'Kalangala', 'woocommerce' ),
|
||||
'UG222' => __( 'Kaliro', 'woocommerce' ),
|
||||
'UG122' => __( 'Kalungu', 'woocommerce' ),
|
||||
'UG102' => __( 'Kampala', 'woocommerce' ),
|
||||
'UG205' => __( 'Kamuli', 'woocommerce' ),
|
||||
'UG413' => __( 'Kamwenge', 'woocommerce' ),
|
||||
'UG414' => __( 'Kanungu', 'woocommerce' ),
|
||||
'UG206' => __( 'Kapchorwa', 'woocommerce' ),
|
||||
'UG236' => __( 'Kapelebyong', 'woocommerce' ),
|
||||
'UG126' => __( 'Kasanda', 'woocommerce' ),
|
||||
'UG406' => __( 'Kasese', 'woocommerce' ),
|
||||
'UG207' => __( 'Katakwi', 'woocommerce' ),
|
||||
'UG112' => __( 'Kayunga', 'woocommerce' ),
|
||||
'UG407' => __( 'Kibaale', 'woocommerce' ),
|
||||
'UG103' => __( 'Kiboga', 'woocommerce' ),
|
||||
'UG227' => __( 'Kibuku', 'woocommerce' ),
|
||||
'UG432' => __( 'Kikuube', 'woocommerce' ),
|
||||
'UG419' => __( 'Kiruhura', 'woocommerce' ),
|
||||
'UG421' => __( 'Kiryandongo', 'woocommerce' ),
|
||||
'UG408' => __( 'Kisoro', 'woocommerce' ),
|
||||
'UG305' => __( 'Kitgum', 'woocommerce' ),
|
||||
'UG319' => __( 'Koboko', 'woocommerce' ),
|
||||
'UG325' => __( 'Kole', 'woocommerce' ),
|
||||
'UG306' => __( 'Kotido', 'woocommerce' ),
|
||||
'UG208' => __( 'Kumi', 'woocommerce' ),
|
||||
'UG333' => __( 'Kwania', 'woocommerce' ),
|
||||
'UG228' => __( 'Kween', 'woocommerce' ),
|
||||
'UG123' => __( 'Kyankwanzi', 'woocommerce' ),
|
||||
'UG422' => __( 'Kyegegwa', 'woocommerce' ),
|
||||
'UG415' => __( 'Kyenjojo', 'woocommerce' ),
|
||||
'UG125' => __( 'Kyotera', 'woocommerce' ),
|
||||
'UG326' => __( 'Lamwo', 'woocommerce' ),
|
||||
'UG307' => __( 'Lira', 'woocommerce' ),
|
||||
'UG229' => __( 'Luuka', 'woocommerce' ),
|
||||
'UG104' => __( 'Luwero', 'woocommerce' ),
|
||||
'UG124' => __( 'Lwengo', 'woocommerce' ),
|
||||
'UG114' => __( 'Lyantonde', 'woocommerce' ),
|
||||
'UG223' => __( 'Manafwa', 'woocommerce' ),
|
||||
'UG320' => __( 'Maracha', 'woocommerce' ),
|
||||
'UG105' => __( 'Masaka', 'woocommerce' ),
|
||||
'UG409' => __( 'Masindi', 'woocommerce' ),
|
||||
'UG214' => __( 'Mayuge', 'woocommerce' ),
|
||||
'UG209' => __( 'Mbale', 'woocommerce' ),
|
||||
'UG410' => __( 'Mbarara', 'woocommerce' ),
|
||||
'UG423' => __( 'Mitooma', 'woocommerce' ),
|
||||
'UG115' => __( 'Mityana', 'woocommerce' ),
|
||||
'UG308' => __( 'Moroto', 'woocommerce' ),
|
||||
'UG309' => __( 'Moyo', 'woocommerce' ),
|
||||
'UG106' => __( 'Mpigi', 'woocommerce' ),
|
||||
'UG107' => __( 'Mubende', 'woocommerce' ),
|
||||
'UG108' => __( 'Mukono', 'woocommerce' ),
|
||||
'UG334' => __( 'Nabilatuk', 'woocommerce' ),
|
||||
'UG311' => __( 'Nakapiripirit', 'woocommerce' ),
|
||||
'UG116' => __( 'Nakaseke', 'woocommerce' ),
|
||||
'UG109' => __( 'Nakasongola', 'woocommerce' ),
|
||||
'UG230' => __( 'Namayingo', 'woocommerce' ),
|
||||
'UG234' => __( 'Namisindwa', 'woocommerce' ),
|
||||
'UG224' => __( 'Namutumba', 'woocommerce' ),
|
||||
'UG327' => __( 'Napak', 'woocommerce' ),
|
||||
'UG310' => __( 'Nebbi', 'woocommerce' ),
|
||||
'UG231' => __( 'Ngora', 'woocommerce' ),
|
||||
'UG424' => __( 'Ntoroko', 'woocommerce' ),
|
||||
'UG411' => __( 'Ntungamo', 'woocommerce' ),
|
||||
'UG328' => __( 'Nwoya', 'woocommerce' ),
|
||||
'UG331' => __( 'Omoro', 'woocommerce' ),
|
||||
'UG329' => __( 'Otuke', 'woocommerce' ),
|
||||
'UG321' => __( 'Oyam', 'woocommerce' ),
|
||||
'UG312' => __( 'Pader', 'woocommerce' ),
|
||||
'UG332' => __( 'Pakwach', 'woocommerce' ),
|
||||
'UG210' => __( 'Pallisa', 'woocommerce' ),
|
||||
'UG110' => __( 'Rakai', 'woocommerce' ),
|
||||
'UG429' => __( 'Rubanda', 'woocommerce' ),
|
||||
'UG425' => __( 'Rubirizi', 'woocommerce' ),
|
||||
'UG431' => __( 'Rukiga', 'woocommerce' ),
|
||||
'UG412' => __( 'Rukungiri', 'woocommerce' ),
|
||||
'UG111' => __( 'Sembabule', 'woocommerce' ),
|
||||
'UG232' => __( 'Serere', 'woocommerce' ),
|
||||
'UG426' => __( 'Sheema', 'woocommerce' ),
|
||||
'UG215' => __( 'Sironko', 'woocommerce' ),
|
||||
'UG211' => __( 'Soroti', 'woocommerce' ),
|
||||
'UG212' => __( 'Tororo', 'woocommerce' ),
|
||||
'UG113' => __( 'Wakiso', 'woocommerce' ),
|
||||
'UG313' => __( 'Yumbe', 'woocommerce' ),
|
||||
'UG330' => __( 'Zombo', 'woocommerce' ),
|
||||
);
|
||||
|
|
|
@ -505,7 +505,7 @@ class WC_Countries {
|
|||
'ES' => "{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{state}\n{country}",
|
||||
'SE' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}",
|
||||
'TR' => "{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city} {state}\n{country}",
|
||||
'UG' => "{name}\n{company}\n{address_1}\n{address_2}\n{city}, {state} \n{country}",
|
||||
'UG' => "{name}\n{company}\n{address_1}\n{address_2}\n{city}\n{state}, {country}",
|
||||
'US' => "{name}\n{company}\n{address_1}\n{address_2}\n{city}, {state_code} {postcode}\n{country}",
|
||||
'VN' => "{name}\n{company}\n{address_1}\n{city}\n{country}",
|
||||
)
|
||||
|
@ -1180,20 +1180,20 @@ class WC_Countries {
|
|||
'label' => __( 'Province', 'woocommerce' ),
|
||||
),
|
||||
),
|
||||
'UG' => array(
|
||||
'postcode' => array(
|
||||
'required' => false,
|
||||
'hidden' => true
|
||||
),
|
||||
'city' => array(
|
||||
'label' => __( 'Town / Village', 'woocommerce' ),
|
||||
'required' => true
|
||||
),
|
||||
'state' => array(
|
||||
'label' => __( 'District', 'woocommerce' ),
|
||||
'required' => true
|
||||
),
|
||||
),
|
||||
'UG' => array(
|
||||
'postcode' => array(
|
||||
'required' => false,
|
||||
'hidden' => true
|
||||
),
|
||||
'city' => array(
|
||||
'label' => __( 'Town / Village', 'woocommerce' ),
|
||||
'required' => true
|
||||
),
|
||||
'state' => array(
|
||||
'label' => __( 'District', 'woocommerce' ),
|
||||
'required' => true
|
||||
),
|
||||
),
|
||||
'US' => array(
|
||||
'postcode' => array(
|
||||
'label' => __( 'ZIP', 'woocommerce' ),
|
||||
|
|
Loading…
Reference in New Issue