Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Add Maori locale data (mi, mi_NZ) from CLDR 1.9 to avoid Zend_…

…Locale complaining (fixes #7386)
  • Loading branch information...
commit ad6b7a40ee620b9a5ada6e0606b418b143e4c2f1 1 parent 5b03f49
@chillu chillu authored
View
12 thirdparty/Zend/Locale.php
@@ -115,7 +115,11 @@ class Zend_Locale
'wal_ET'=> true, 'wal' => true, 'wo_SN' => true, 'wo' => true, 'xh_ZA' => true,
'xh' => true, 'yo_NG' => true, 'yo' => true, 'zh_CN' => true, 'zh_HK' => true,
'zh_MO' => true, 'zh_SG' => true, 'zh_TW' => true, 'zh' => true, 'zu_ZA' => true,
- 'zu' => true
+ 'zu' => true,
+ // CUSTOM SilverStripe Add Maori locales.
+ // Remove once updating Zend_Locale to 2.0 (which uses CLDR 1.9), see
+ // https://github.com/zendframework/zf2/tree/master/resources/cldr/main
+ 'mi' => true, 'mi_NZ' => true,
);
/**
@@ -172,7 +176,11 @@ class Zend_Locale
'TZ' => 'sw_TZ', 'UA' => 'uk_UA', 'UG' => 'sw_UG', 'UM' => 'en_UM', 'US' => 'en_US',
'UY' => 'es_UY', 'UZ' => 'uz_Cyrl_UZ', 'VA' => 'it_VA', 'VC' => 'en_VC', 'VE' => 'es_VE',
'VG' => 'en_VG', 'VI' => 'en_VI', 'VU' => 'bi_VU', 'WF' => 'wls_WF', 'WS' => 'sm_WS',
- 'YE' => 'ar_YE', 'YT' => 'swb_YT', 'ZA' => 'en_ZA', 'ZM' => 'en_ZM', 'ZW' => 'sn_ZW'
+ 'YE' => 'ar_YE', 'YT' => 'swb_YT', 'ZA' => 'en_ZA', 'ZM' => 'en_ZM', 'ZW' => 'sn_ZW',
+ // CUSTOM SilverStripe Add Maori locales.
+ // Remove once updating Zend_Locale to 2.0 (which uses CLDR 1.9), see
+ // https://github.com/zendframework/zf2/tree/master/resources/cldr/main
+ 'MI' => 'mi_NZ'
);
/**
View
51 thirdparty/Zend/Locale/Data/mi.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<ldml>
+ <identity>
+ <version number="$Revision: 4599 $"/>
+ <generation date="$Date: 2010-02-05 18:15:28 -0600 (Fri, 05 Feb 2010) $"/>
+ <language type="mi"/>
+ </identity>
+ <characters>
+ <exemplarCharacters>[a ā e ē h i ī k m n {ng} o ō p r t u ū w {wh}]</exemplarCharacters>
+ <exemplarCharacters type="auxiliary">[b c d f g j l q s v x y z]</exemplarCharacters>
+ <exemplarCharacters type="index">[A E H I K M N O P R T U W]</exemplarCharacters>
+ </characters>
+ <dates>
+ <calendars>
+ <calendar type="gregorian">
+ <months>
+ <monthContext type="format">
+ <monthWidth type="wide">
+ <month type="1">Hānuere</month>
+ <month type="2">Pēpuere</month>
+ <month type="3">Māehe</month>
+ <month type="4">Āperira</month>
+ <month type="5">Mei</month>
+ <month type="6">Hune</month>
+ <month type="7">Hūrae</month>
+ <month type="8">Ākuhata</month>
+ <month type="9">Hepetema</month>
+ <month type="10">Oketopa</month>
+ <month type="11">Noema</month>
+ <month type="12">Tīhema</month>
+ </monthWidth>
+ </monthContext>
+ </months>
+ <days>
+ <dayContext type="format">
+ <dayWidth type="wide">
+ <day type="sun">Rātapu</day>
+ <day type="mon">Mane</day>
+ <day type="tue">Tūrei</day>
+ <day type="wed">Wenerei</day>
+ <day type="thu">Tāite</day>
+ <day type="fri">Paraire</day>
+ <day type="sat">Hātarei</day>
+ </dayWidth>
+ </dayContext>
+ </days>
+ </calendar>
+ </calendars>
+ </dates>
+</ldml>
View
10 thirdparty/Zend/Locale/Data/mi_NZ.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<ldml>
+ <identity>
+ <version number="$Revision: 4421 $"/>
+ <generation date="$Date: 2009-11-24 01:10:06 -0600 (Tue, 24 Nov 2009) $"/>
+ <language type="mi"/>
+ <territory type="NZ"/>
+ </identity>
+</ldml>
Please sign in to comment.
Something went wrong with that request. Please try again.