Add counties for Republic of Ireland, change Postcode label to Eircode (#12180)

This commit is contained in:
Zachary 2016-11-03 11:48:14 +00:00 committed by Mike Jolley
parent 237ebc0e95
commit 09f53ce778
2 changed files with 43 additions and 1 deletions

39
i18n/states/IE.php Normal file
View File

@ -0,0 +1,39 @@
<?php
/**
* Republic of Ireland
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.7.0
*/
global $states;
$states['IE'] = array(
'CE' => __( 'Clare', 'woocommerce' ),
'CK' => __( 'Cork', 'woocommerce' ),
'CN' => __( 'Cavan', 'woocommerce' ),
'CW' => __( 'Carlow', 'woocommerce' ),
'DL' => __( 'Donegal', 'woocommerce' ),
'DN' => __( 'Dublin', 'woocommerce' ),
'GY' => __( 'Galway', 'woocommerce' ),
'KE' => __( 'Kildare', 'woocommerce' ),
'KK' => __( 'Kilkenny', 'woocommerce' ),
'KY' => __( 'Kerry', 'woocommerce' ),
'LD' => __( 'Longford', 'woocommerce' ),
'LH' => __( 'Louth', 'woocommerce' ),
'LK' => __( 'Limerick', 'woocommerce' ),
'LM' => __( 'Leitrim', 'woocommerce' ),
'LS' => __( 'Laois', 'woocommerce' ),
'MH' => __( 'Meath', 'woocommerce' ),
'MN' => __( 'Monaghan', 'woocommerce' ),
'MO' => __( 'Mayo', 'woocommerce' ),
'OY' => __( 'Offaly', 'woocommerce' ),
'RN' => __( 'Roscommon', 'woocommerce' ),
'SO' => __( 'Sligo', 'woocommerce' ),
'TY' => __( 'Tipperary', 'woocommerce' ),
'WD' => __( 'Waterford', 'woocommerce' ),
'WH' => __( 'Westmeath', 'woocommerce' ),
'WW' => __( 'Wicklow', 'woocommerce' ),
'WX' => __( 'Wexford', 'woocommerce' ),
);

View File

@ -792,7 +792,10 @@ class WC_Countries {
'IE' => array( 'IE' => array(
'postcode' => array( 'postcode' => array(
'required' => false, 'required' => false,
'label' => __( 'Postcode', 'woocommerce' ), 'label' => __( 'Eircode', 'woocommerce' ),
),
'state' => array(
'label' => __( 'County', 'woocommerce' ),
), ),
), ),
'IS' => array( 'IS' => array(