Skip to content
This repository
Browse code

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
Ingo Schommer authored May 29, 2012
12  thirdparty/Zend/Locale.php
@@ -115,7 +115,11 @@ class Zend_Locale
115 115
         'wal_ET'=> true, 'wal'   => true, 'wo_SN' => true, 'wo'    => true, 'xh_ZA' => true,
116 116
         'xh'    => true, 'yo_NG' => true, 'yo'    => true, 'zh_CN' => true, 'zh_HK' => true,
117 117
         'zh_MO' => true, 'zh_SG' => true, 'zh_TW' => true, 'zh'    => true, 'zu_ZA' => true,
118  
-        'zu'    => true
  118
+        'zu'    => true,
  119
+        // CUSTOM SilverStripe Add Maori locales.
  120
+        // Remove once updating Zend_Locale to 2.0 (which uses CLDR 1.9), see
  121
+        // https://github.com/zendframework/zf2/tree/master/resources/cldr/main
  122
+        'mi' => true, 'mi_NZ' => true,
119 123
     );
120 124
 
121 125
     /**
@@ -172,7 +176,11 @@ class Zend_Locale
172 176
         'TZ' => 'sw_TZ', 'UA' => 'uk_UA', 'UG' => 'sw_UG', 'UM' => 'en_UM', 'US' => 'en_US',
173 177
         'UY' => 'es_UY', 'UZ' => 'uz_Cyrl_UZ', 'VA' => 'it_VA', 'VC' => 'en_VC', 'VE' => 'es_VE',
174 178
         'VG' => 'en_VG', 'VI' => 'en_VI', 'VU' => 'bi_VU', 'WF' => 'wls_WF', 'WS' => 'sm_WS',
175  
-        'YE' => 'ar_YE', 'YT' => 'swb_YT', 'ZA' => 'en_ZA', 'ZM' => 'en_ZM', 'ZW' => 'sn_ZW'
  179
+        'YE' => 'ar_YE', 'YT' => 'swb_YT', 'ZA' => 'en_ZA', 'ZM' => 'en_ZM', 'ZW' => 'sn_ZW',
  180
+        // CUSTOM SilverStripe Add Maori locales.
  181
+        // Remove once updating Zend_Locale to 2.0 (which uses CLDR 1.9), see
  182
+        // https://github.com/zendframework/zf2/tree/master/resources/cldr/main
  183
+        'MI' => 'mi_NZ'
176 184
     );
177 185
 
178 186
     /**
51  thirdparty/Zend/Locale/Data/mi.xml
... ...
@@ -0,0 +1,51 @@
  1
+<?xml version="1.0" encoding="UTF-8" ?>
  2
+
  3
+<ldml>
  4
+	<identity>
  5
+		<version number="$Revision: 4599 $"/>
  6
+		<generation date="$Date: 2010-02-05 18:15:28 -0600 (Fri, 05 Feb 2010) $"/>
  7
+		<language type="mi"/>
  8
+	</identity>
  9
+	<characters>
  10
+		<exemplarCharacters>[a ā e ē h i ī k m n {ng} o ō p r t u ū w {wh}]</exemplarCharacters>
  11
+		<exemplarCharacters type="auxiliary">[b c d f g j l q s v x y z]</exemplarCharacters>
  12
+		<exemplarCharacters type="index">[A E H I K M N O P R T U W]</exemplarCharacters>
  13
+	</characters>
  14
+	<dates>
  15
+		<calendars>
  16
+			<calendar type="gregorian">
  17
+				<months>
  18
+					<monthContext type="format">
  19
+						<monthWidth type="wide">
  20
+							<month type="1">Hānuere</month>
  21
+							<month type="2">Pēpuere</month>
  22
+							<month type="3">Māehe</month>
  23
+							<month type="4">Āperira</month>
  24
+							<month type="5">Mei</month>
  25
+							<month type="6">Hune</month>
  26
+							<month type="7">Hūrae</month>
  27
+							<month type="8">Ākuhata</month>
  28
+							<month type="9">Hepetema</month>
  29
+							<month type="10">Oketopa</month>
  30
+							<month type="11">Noema</month>
  31
+							<month type="12">Tīhema</month>
  32
+						</monthWidth>
  33
+					</monthContext>
  34
+				</months>
  35
+				<days>
  36
+					<dayContext type="format">
  37
+						<dayWidth type="wide">
  38
+							<day type="sun">Rātapu</day>
  39
+							<day type="mon">Mane</day>
  40
+							<day type="tue">Tūrei</day>
  41
+							<day type="wed">Wenerei</day>
  42
+							<day type="thu">Tāite</day>
  43
+							<day type="fri">Paraire</day>
  44
+							<day type="sat">Hātarei</day>
  45
+						</dayWidth>
  46
+					</dayContext>
  47
+				</days>
  48
+			</calendar>
  49
+		</calendars>
  50
+	</dates>
  51
+</ldml>
10  thirdparty/Zend/Locale/Data/mi_NZ.xml
... ...
@@ -0,0 +1,10 @@
  1
+<?xml version="1.0" encoding="UTF-8" ?>
  2
+
  3
+<ldml>
  4
+	<identity>
  5
+		<version number="$Revision: 4421 $"/>
  6
+		<generation date="$Date: 2009-11-24 01:10:06 -0600 (Tue, 24 Nov 2009) $"/>
  7
+		<language type="mi"/>
  8
+		<territory type="NZ"/>
  9
+	</identity>
  10
+</ldml>

0 notes on commit ad6b7a4

Please sign in to comment.
Something went wrong with that request. Please try again.