Lib_ZF_Locale - Version 1.9.6.1

Version Notes

1.9.6.1

Download this release

Release Info

Developer Magento Core Team
Extension Lib_ZF_Locale
Version 1.9.6.1
Comparing to
See all releases


Code changes from version 1.7.2.2 to 1.9.6.1

Files changed (485) hide show
  1. lib/Zend/Locale.php +119 -66
  2. lib/Zend/Locale/Data.php +300 -36
  3. lib/Zend/Locale/Data/Translation.php +3 -3
  4. lib/Zend/Locale/Data/aa.xml +8 -47
  5. lib/Zend/Locale/Data/aa_DJ.xml +4 -13
  6. lib/Zend/Locale/Data/aa_ER.xml +4 -13
  7. lib/Zend/Locale/Data/aa_ER_SAAHO.xml +39 -0
  8. lib/Zend/Locale/Data/aa_ET.xml +3 -3
  9. lib/Zend/Locale/Data/af.xml +18 -23
  10. lib/Zend/Locale/Data/af_NA.xml +7 -8
  11. lib/Zend/Locale/Data/af_ZA.xml +3 -3
  12. lib/Zend/Locale/Data/ak.xml +8 -13
  13. lib/Zend/Locale/Data/ak_GH.xml +3 -3
  14. lib/Zend/Locale/Data/am.xml +17 -24
  15. lib/Zend/Locale/Data/am_ET.xml +3 -3
  16. lib/Zend/Locale/Data/ar.xml +3115 -3104
  17. lib/Zend/Locale/Data/ar_AE.xml +3 -3
  18. lib/Zend/Locale/Data/ar_BH.xml +3 -3
  19. lib/Zend/Locale/Data/ar_DZ.xml +27 -3
  20. lib/Zend/Locale/Data/ar_EG.xml +3 -3
  21. lib/Zend/Locale/Data/ar_IQ.xml +3 -3
  22. lib/Zend/Locale/Data/ar_JO.xml +3 -3
  23. lib/Zend/Locale/Data/ar_KW.xml +3 -3
  24. lib/Zend/Locale/Data/ar_LB.xml +3 -8
  25. lib/Zend/Locale/Data/ar_LY.xml +3 -3
  26. lib/Zend/Locale/Data/ar_MA.xml +30 -3
  27. lib/Zend/Locale/Data/ar_OM.xml +3 -3
  28. lib/Zend/Locale/Data/ar_QA.xml +3 -3
  29. lib/Zend/Locale/Data/ar_SA.xml +3 -3
  30. lib/Zend/Locale/Data/ar_SD.xml +3 -3
  31. lib/Zend/Locale/Data/ar_SY.xml +3 -3
  32. lib/Zend/Locale/Data/ar_TN.xml +24 -3
  33. lib/Zend/Locale/Data/ar_YE.xml +3 -3
  34. lib/Zend/Locale/Data/as.xml +7 -13
  35. lib/Zend/Locale/Data/as_IN.xml +3 -3
  36. lib/Zend/Locale/Data/az.xml +14 -50
  37. lib/Zend/Locale/Data/az_AZ.xml +3 -3
  38. lib/Zend/Locale/Data/az_Cyrl.xml +4 -4
  39. lib/Zend/Locale/Data/az_Cyrl_AZ.xml +3 -3
  40. lib/Zend/Locale/Data/az_Latn.xml +3 -3
  41. lib/Zend/Locale/Data/az_Latn_AZ.xml +3 -3
  42. lib/Zend/Locale/Data/be.xml +35 -135
  43. lib/Zend/Locale/Data/be_BY.xml +3 -3
  44. lib/Zend/Locale/Data/bg.xml +1176 -225
  45. lib/Zend/Locale/Data/bg_BG.xml +3 -3
  46. lib/Zend/Locale/Data/bn.xml +148 -233
  47. lib/Zend/Locale/Data/bn_BD.xml +3 -3
  48. lib/Zend/Locale/Data/bn_IN.xml +9 -167
  49. lib/Zend/Locale/Data/bo.xml +441 -0
  50. lib/Zend/Locale/Data/bo_CN.xml +10 -0
  51. lib/Zend/Locale/Data/bo_IN.xml +10 -0
  52. lib/Zend/Locale/Data/bs.xml +7 -14
  53. lib/Zend/Locale/Data/bs_BA.xml +3 -3
  54. lib/Zend/Locale/Data/byn.xml +10 -16
  55. lib/Zend/Locale/Data/byn_ER.xml +3 -3
  56. lib/Zend/Locale/Data/ca.xml +1866 -257
  57. lib/Zend/Locale/Data/ca_ES.xml +3 -3
  58. lib/Zend/Locale/Data/cch.xml +9 -14
  59. lib/Zend/Locale/Data/cch_NG.xml +3 -3
  60. lib/Zend/Locale/Data/characters.xml +478 -1884
  61. lib/Zend/Locale/Data/cop.xml +7 -12
  62. lib/Zend/Locale/Data/cs.xml +364 -130
  63. lib/Zend/Locale/Data/cs_CZ.xml +3 -3
  64. lib/Zend/Locale/Data/cy.xml +18 -25
  65. lib/Zend/Locale/Data/cy_GB.xml +3 -3
  66. lib/Zend/Locale/Data/da.xml +304 -154
  67. lib/Zend/Locale/Data/da_DK.xml +3 -3
  68. lib/Zend/Locale/Data/de.xml +143 -219
  69. lib/Zend/Locale/Data/de_AT.xml +11 -12
  70. lib/Zend/Locale/Data/de_BE.xml +13 -19
  71. lib/Zend/Locale/Data/de_CH.xml +9 -3
  72. lib/Zend/Locale/Data/de_DE.xml +3 -3
  73. lib/Zend/Locale/Data/de_LI.xml +3 -4
  74. lib/Zend/Locale/Data/de_LU.xml +3 -3
  75. lib/Zend/Locale/Data/dv.xml +8 -13
  76. lib/Zend/Locale/Data/dv_MV.xml +3 -3
  77. lib/Zend/Locale/Data/dz.xml +10 -22
  78. lib/Zend/Locale/Data/dz_BT.xml +3 -3
  79. lib/Zend/Locale/Data/ee.xml +8 -14
  80. lib/Zend/Locale/Data/ee_GH.xml +3 -3
  81. lib/Zend/Locale/Data/ee_TG.xml +3 -3
  82. lib/Zend/Locale/Data/el.xml +1747 -265
  83. lib/Zend/Locale/Data/el_CY.xml +4 -3
  84. lib/Zend/Locale/Data/el_GR.xml +3 -3
  85. lib/Zend/Locale/Data/el_POLYTON.xml +4 -8
  86. lib/Zend/Locale/Data/en.xml +4092 -4049
  87. lib/Zend/Locale/Data/en_AS.xml +3 -3
  88. lib/Zend/Locale/Data/en_AU.xml +14 -15
  89. lib/Zend/Locale/Data/en_BE.xml +15 -15
  90. lib/Zend/Locale/Data/en_BW.xml +16 -16
  91. lib/Zend/Locale/Data/en_BZ.xml +16 -16
  92. lib/Zend/Locale/Data/en_CA.xml +12 -11
  93. lib/Zend/Locale/Data/en_Dsrt.xml +1024 -0
  94. lib/Zend/Locale/Data/en_Dsrt_US.xml +11 -0
  95. lib/Zend/Locale/Data/en_GB.xml +16 -17
  96. lib/Zend/Locale/Data/en_GU.xml +3 -3
  97. lib/Zend/Locale/Data/en_HK.xml +15 -94
  98. lib/Zend/Locale/Data/en_IE.xml +17 -17
  99. lib/Zend/Locale/Data/en_IN.xml +15 -16
  100. lib/Zend/Locale/Data/en_JM.xml +11 -3
  101. lib/Zend/Locale/Data/en_MH.xml +3 -3
  102. lib/Zend/Locale/Data/en_MP.xml +3 -3
  103. lib/Zend/Locale/Data/en_MT.xml +17 -17
  104. lib/Zend/Locale/Data/en_NA.xml +11 -3
  105. lib/Zend/Locale/Data/en_NZ.xml +14 -16
  106. lib/Zend/Locale/Data/en_PH.xml +3 -3
  107. lib/Zend/Locale/Data/en_PK.xml +23 -16
  108. lib/Zend/Locale/Data/en_SG.xml +8 -121
  109. lib/Zend/Locale/Data/en_Shaw.xml +7 -7
  110. lib/Zend/Locale/Data/en_TT.xml +11 -3
  111. lib/Zend/Locale/Data/en_UM.xml +3 -3
  112. lib/Zend/Locale/Data/en_US.xml +3 -3
  113. lib/Zend/Locale/Data/en_US_POSIX.xml +42 -42
  114. lib/Zend/Locale/Data/en_VI.xml +3 -3
  115. lib/Zend/Locale/Data/en_ZA.xml +15 -16
  116. lib/Zend/Locale/Data/en_ZW.xml +16 -20
  117. lib/Zend/Locale/Data/eo.xml +15 -21
  118. lib/Zend/Locale/Data/es.xml +229 -198
  119. lib/Zend/Locale/Data/es_AR.xml +12 -17
  120. lib/Zend/Locale/Data/es_BO.xml +3 -3
  121. lib/Zend/Locale/Data/es_CL.xml +11 -17
  122. lib/Zend/Locale/Data/es_CO.xml +12 -17
  123. lib/Zend/Locale/Data/es_CR.xml +3 -10
  124. lib/Zend/Locale/Data/es_DO.xml +3 -3
  125. lib/Zend/Locale/Data/es_EC.xml +12 -16
  126. lib/Zend/Locale/Data/es_ES.xml +3 -4
  127. lib/Zend/Locale/Data/es_GT.xml +16 -11
  128. lib/Zend/Locale/Data/es_HN.xml +18 -13
  129. lib/Zend/Locale/Data/es_MX.xml +3 -3
  130. lib/Zend/Locale/Data/es_NI.xml +3 -3
  131. lib/Zend/Locale/Data/es_PA.xml +12 -14
  132. lib/Zend/Locale/Data/es_PE.xml +12 -12
  133. lib/Zend/Locale/Data/es_PR.xml +12 -14
  134. lib/Zend/Locale/Data/es_PY.xml +3 -4
  135. lib/Zend/Locale/Data/es_SV.xml +3 -3
  136. lib/Zend/Locale/Data/es_US.xml +21 -13
  137. lib/Zend/Locale/Data/es_UY.xml +4 -5
  138. lib/Zend/Locale/Data/es_VE.xml +3 -4
  139. lib/Zend/Locale/Data/et.xml +68 -31
  140. lib/Zend/Locale/Data/et_EE.xml +3 -3
  141. lib/Zend/Locale/Data/eu.xml +468 -47
  142. lib/Zend/Locale/Data/eu_ES.xml +3 -3
  143. lib/Zend/Locale/Data/fa.xml +216 -268
  144. lib/Zend/Locale/Data/fa_AF.xml +5 -4
  145. lib/Zend/Locale/Data/fa_IR.xml +3 -3
  146. lib/Zend/Locale/Data/fi.xml +863 -457
  147. lib/Zend/Locale/Data/fi_FI.xml +3 -3
  148. lib/Zend/Locale/Data/fil.xml +34 -29
  149. lib/Zend/Locale/Data/fil_PH.xml +8 -8
  150. lib/Zend/Locale/Data/fo.xml +184 -25
  151. lib/Zend/Locale/Data/fo_FO.xml +3 -3
  152. lib/Zend/Locale/Data/fr.xml +402 -513
  153. lib/Zend/Locale/Data/fr_BE.xml +12 -13
  154. lib/Zend/Locale/Data/fr_CA.xml +11 -14
  155. lib/Zend/Locale/Data/fr_CH.xml +13 -14
  156. lib/Zend/Locale/Data/fr_FR.xml +3 -3
  157. lib/Zend/Locale/Data/fr_LU.xml +3 -3
  158. lib/Zend/Locale/Data/fr_MC.xml +3 -3
  159. lib/Zend/Locale/Data/fr_SN.xml +3 -3
  160. lib/Zend/Locale/Data/fur.xml +164 -26
  161. lib/Zend/Locale/Data/fur_IT.xml +3 -3
  162. lib/Zend/Locale/Data/ga.xml +15 -113
  163. lib/Zend/Locale/Data/ga_IE.xml +3 -3
  164. lib/Zend/Locale/Data/gaa.xml +7 -13
  165. lib/Zend/Locale/Data/gaa_GH.xml +3 -3
  166. lib/Zend/Locale/Data/gez.xml +10 -20
  167. lib/Zend/Locale/Data/gez_ER.xml +3 -3
  168. lib/Zend/Locale/Data/gez_ET.xml +3 -13
  169. lib/Zend/Locale/Data/gl.xml +18 -24
  170. lib/Zend/Locale/Data/gl_ES.xml +3 -3
  171. lib/Zend/Locale/Data/gsw.xml +2920 -0
  172. lib/Zend/Locale/Data/gsw_CH.xml +10 -0
  173. lib/Zend/Locale/Data/gu.xml +913 -117
  174. lib/Zend/Locale/Data/gu_IN.xml +3 -3
  175. lib/Zend/Locale/Data/gv.xml +8 -13
  176. lib/Zend/Locale/Data/gv_GB.xml +3 -3
  177. lib/Zend/Locale/Data/ha.xml +12 -17
  178. lib/Zend/Locale/Data/ha_Arab.xml +3 -3
  179. lib/Zend/Locale/Data/ha_Arab_NG.xml +3 -3
  180. lib/Zend/Locale/Data/ha_Arab_SD.xml +3 -3
  181. lib/Zend/Locale/Data/ha_GH.xml +3 -3
  182. lib/Zend/Locale/Data/ha_Latn.xml +3 -3
  183. lib/Zend/Locale/Data/ha_Latn_GH.xml +3 -3
  184. lib/Zend/Locale/Data/ha_Latn_NE.xml +3 -3
  185. lib/Zend/Locale/Data/ha_Latn_NG.xml +3 -3
  186. lib/Zend/Locale/Data/ha_NE.xml +3 -3
  187. lib/Zend/Locale/Data/ha_NG.xml +3 -3
  188. lib/Zend/Locale/Data/ha_SD.xml +3 -3
  189. lib/Zend/Locale/Data/haw.xml +8 -13
  190. lib/Zend/Locale/Data/haw_US.xml +3 -3
  191. lib/Zend/Locale/Data/he.xml +229 -285
  192. lib/Zend/Locale/Data/he_IL.xml +3 -3
  193. lib/Zend/Locale/Data/hi.xml +497 -158
  194. lib/Zend/Locale/Data/hi_IN.xml +3 -3
  195. lib/Zend/Locale/Data/hr.xml +2369 -369
  196. lib/Zend/Locale/Data/hr_HR.xml +3 -3
  197. lib/Zend/Locale/Data/hu.xml +67 -379
  198. lib/Zend/Locale/Data/hu_HU.xml +3 -3
  199. lib/Zend/Locale/Data/hy.xml +15 -20
  200. lib/Zend/Locale/Data/hy_AM.xml +3 -3
  201. lib/Zend/Locale/Data/hy_AM_REVISED.xml +3 -3
  202. lib/Zend/Locale/Data/ia.xml +7 -12
  203. lib/Zend/Locale/Data/id.xml +34 -17
  204. lib/Zend/Locale/Data/id_ID.xml +3 -3
  205. lib/Zend/Locale/Data/ig.xml +7 -13
  206. lib/Zend/Locale/Data/ig_NG.xml +3 -3
  207. lib/Zend/Locale/Data/ii.xml +6 -7
  208. lib/Zend/Locale/Data/ii_CN.xml +3 -3
  209. lib/Zend/Locale/Data/in.xml +7 -7
  210. lib/Zend/Locale/Data/is.xml +125 -115
  211. lib/Zend/Locale/Data/is_IS.xml +3 -3
  212. lib/Zend/Locale/Data/it.xml +57 -119
  213. lib/Zend/Locale/Data/it_CH.xml +13 -14
  214. lib/Zend/Locale/Data/it_IT.xml +3 -3
  215. lib/Zend/Locale/Data/iu.xml +7 -12
  216. lib/Zend/Locale/Data/iw.xml +8 -8
  217. lib/Zend/Locale/Data/ja.xml +57 -150
  218. lib/Zend/Locale/Data/ja_JP.xml +3 -3
  219. lib/Zend/Locale/Data/ka.xml +11 -22
  220. lib/Zend/Locale/Data/ka_GE.xml +3 -3
  221. lib/Zend/Locale/Data/kaj.xml +8 -13
  222. lib/Zend/Locale/Data/kaj_NG.xml +3 -3
  223. lib/Zend/Locale/Data/kam.xml +7 -13
  224. lib/Zend/Locale/Data/kam_KE.xml +3 -3
  225. lib/Zend/Locale/Data/kcg.xml +9 -14
  226. lib/Zend/Locale/Data/kcg_NG.xml +3 -3
  227. lib/Zend/Locale/Data/kfo.xml +8 -13
  228. lib/Zend/Locale/Data/kfo_CI.xml +3 -3
  229. lib/Zend/Locale/Data/kk.xml +16 -25
  230. lib/Zend/Locale/Data/kk_Cyrl.xml +3 -3
  231. lib/Zend/Locale/Data/kk_Cyrl_KZ.xml +3 -3
  232. lib/Zend/Locale/Data/kk_KZ.xml +3 -3
  233. lib/Zend/Locale/Data/kl.xml +8 -14
  234. lib/Zend/Locale/Data/kl_GL.xml +3 -3
  235. lib/Zend/Locale/Data/km.xml +53 -45
  236. lib/Zend/Locale/Data/km_KH.xml +3 -3
  237. lib/Zend/Locale/Data/kn.xml +807 -113
  238. lib/Zend/Locale/Data/kn_IN.xml +3 -3
  239. lib/Zend/Locale/Data/ko.xml +181 -546
  240. lib/Zend/Locale/Data/ko_KR.xml +3 -3
  241. lib/Zend/Locale/Data/kok.xml +7 -12
  242. lib/Zend/Locale/Data/kok_IN.xml +3 -3
  243. lib/Zend/Locale/Data/kpe.xml +14 -12
  244. lib/Zend/Locale/Data/kpe_GN.xml +10 -3
  245. lib/Zend/Locale/Data/kpe_LR.xml +3 -3
  246. lib/Zend/Locale/Data/ku.xml +27 -4
  247. lib/Zend/Locale/Data/ku_Arab.xml +3 -3
  248. lib/Zend/Locale/Data/ku_Arab_IQ.xml +11 -0
  249. lib/Zend/Locale/Data/ku_Arab_IR.xml +11 -0
  250. lib/Zend/Locale/Data/ku_Arab_SY.xml +11 -0
  251. lib/Zend/Locale/Data/ku_IQ.xml +11 -0
  252. lib/Zend/Locale/Data/ku_IR.xml +11 -0
  253. lib/Zend/Locale/Data/ku_Latn.xml +6 -4
  254. lib/Zend/Locale/Data/ku_Latn_TR.xml +3 -3
  255. lib/Zend/Locale/Data/ku_SY.xml +11 -0
  256. lib/Zend/Locale/Data/ku_TR.xml +3 -3
  257. lib/Zend/Locale/Data/kw.xml +8 -13
  258. lib/Zend/Locale/Data/kw_GB.xml +3 -3
  259. lib/Zend/Locale/Data/ky.xml +7 -12
  260. lib/Zend/Locale/Data/ky_KG.xml +3 -3
  261. lib/Zend/Locale/Data/likelySubtags.xml +463 -0
  262. lib/Zend/Locale/Data/ln.xml +9 -16
  263. lib/Zend/Locale/Data/ln_CD.xml +3 -3
  264. lib/Zend/Locale/Data/ln_CG.xml +3 -3
  265. lib/Zend/Locale/Data/lo.xml +45 -41
  266. lib/Zend/Locale/Data/lo_LA.xml +3 -3
  267. lib/Zend/Locale/Data/lt.xml +930 -56
  268. lib/Zend/Locale/Data/lt_LT.xml +3 -3
  269. lib/Zend/Locale/Data/lv.xml +747 -174
  270. lib/Zend/Locale/Data/lv_LV.xml +3 -3
  271. lib/Zend/Locale/Data/metazoneInfo.xml +1404 -0
  272. lib/Zend/Locale/Data/mk.xml +1237 -187
  273. lib/Zend/Locale/Data/mk_MK.xml +3 -3
  274. lib/Zend/Locale/Data/ml.xml +202 -299
  275. lib/Zend/Locale/Data/ml_IN.xml +3 -3
  276. lib/Zend/Locale/Data/mn.xml +7 -17
  277. lib/Zend/Locale/Data/mn_CN.xml +3 -3
  278. lib/Zend/Locale/Data/mn_Cyrl.xml +3 -3
  279. lib/Zend/Locale/Data/mn_Cyrl_MN.xml +3 -3
  280. lib/Zend/Locale/Data/mn_MN.xml +3 -3
  281. lib/Zend/Locale/Data/mn_Mong.xml +3 -3
  282. lib/Zend/Locale/Data/mn_Mong_CN.xml +3 -3
  283. lib/Zend/Locale/Data/mo.xml +8 -8
  284. lib/Zend/Locale/Data/mr.xml +968 -165
  285. lib/Zend/Locale/Data/mr_IN.xml +3 -3
  286. lib/Zend/Locale/Data/ms.xml +8 -14
  287. lib/Zend/Locale/Data/ms_BN.xml +13 -14
  288. lib/Zend/Locale/Data/ms_MY.xml +3 -3
  289. lib/Zend/Locale/Data/mt.xml +20 -26
  290. lib/Zend/Locale/Data/mt_MT.xml +3 -3
  291. lib/Zend/Locale/Data/my.xml +23 -39
  292. lib/Zend/Locale/Data/my_MM.xml +3 -3
  293. lib/Zend/Locale/Data/nb.xml +486 -56
  294. lib/Zend/Locale/Data/nb_NO.xml +3 -3
  295. lib/Zend/Locale/Data/nds.xml +1149 -0
  296. lib/Zend/Locale/Data/nds_DE.xml +10 -0
  297. lib/Zend/Locale/Data/ne.xml +15 -20
  298. lib/Zend/Locale/Data/ne_IN.xml +3 -3
  299. lib/Zend/Locale/Data/ne_NP.xml +3 -3
  300. lib/Zend/Locale/Data/nl.xml +106 -186
  301. lib/Zend/Locale/Data/nl_BE.xml +4 -5
  302. lib/Zend/Locale/Data/nl_NL.xml +3 -3
  303. lib/Zend/Locale/Data/nn.xml +1243 -58
  304. lib/Zend/Locale/Data/nn_NO.xml +3 -3
  305. lib/Zend/Locale/Data/no.xml +8 -8
  306. lib/Zend/Locale/Data/nr.xml +8 -17
  307. lib/Zend/Locale/Data/nr_ZA.xml +3 -3
  308. lib/Zend/Locale/Data/nso.xml +8 -17
  309. lib/Zend/Locale/Data/nso_ZA.xml +3 -3
  310. lib/Zend/Locale/Data/numberingSystems.xml +42 -0
  311. lib/Zend/Locale/Data/ny.xml +7 -13
  312. lib/Zend/Locale/Data/ny_MW.xml +3 -3
  313. lib/Zend/Locale/Data/oc.xml +280 -0
  314. lib/Zend/Locale/Data/oc_FR.xml +10 -0
  315. lib/Zend/Locale/Data/om.xml +9 -17
  316. lib/Zend/Locale/Data/om_ET.xml +3 -3
  317. lib/Zend/Locale/Data/om_KE.xml +3 -10
  318. lib/Zend/Locale/Data/or.xml +959 -51
  319. lib/Zend/Locale/Data/or_IN.xml +3 -3
  320. lib/Zend/Locale/Data/pa.xml +17 -36
  321. lib/Zend/Locale/Data/pa_Arab.xml +8 -4
  322. lib/Zend/Locale/Data/pa_Arab_PK.xml +3 -3
  323. lib/Zend/Locale/Data/pa_Guru.xml +3 -3
  324. lib/Zend/Locale/Data/pa_Guru_IN.xml +3 -3
  325. lib/Zend/Locale/Data/pa_IN.xml +3 -3
  326. lib/Zend/Locale/Data/pa_PK.xml +3 -3
  327. lib/Zend/Locale/Data/pl.xml +45 -178
  328. lib/Zend/Locale/Data/pl_PL.xml +3 -3
  329. lib/Zend/Locale/Data/plurals.xml +0 -76
  330. lib/Zend/Locale/Data/postalCodeData.xml +166 -0
  331. lib/Zend/Locale/Data/ps.xml +11 -28
  332. lib/Zend/Locale/Data/ps_AF.xml +3 -3
  333. lib/Zend/Locale/Data/pt.xml +467 -474
  334. lib/Zend/Locale/Data/pt_BR.xml +3 -3
  335. lib/Zend/Locale/Data/pt_PT.xml +30 -125
  336. lib/Zend/Locale/Data/ro.xml +801 -114
  337. lib/Zend/Locale/Data/ro_MD.xml +7 -7
  338. lib/Zend/Locale/Data/ro_RO.xml +3 -3
  339. lib/Zend/Locale/Data/root.xml +696 -42
  340. lib/Zend/Locale/Data/ru.xml +87 -186
  341. lib/Zend/Locale/Data/ru_RU.xml +3 -3
  342. lib/Zend/Locale/Data/ru_UA.xml +16 -17
  343. lib/Zend/Locale/Data/rw.xml +7 -12
  344. lib/Zend/Locale/Data/rw_RW.xml +3 -3
  345. lib/Zend/Locale/Data/sa.xml +8 -117
  346. lib/Zend/Locale/Data/sa_IN.xml +3 -3
  347. lib/Zend/Locale/Data/se.xml +126 -41
  348. lib/Zend/Locale/Data/se_FI.xml +5 -6
  349. lib/Zend/Locale/Data/se_NO.xml +3 -3
  350. lib/Zend/Locale/Data/sh.xml +3 -3
  351. lib/Zend/Locale/Data/sh_BA.xml +3 -3
  352. lib/Zend/Locale/Data/sh_CS.xml +3 -3
  353. lib/Zend/Locale/Data/sh_YU.xml +3 -3
  354. lib/Zend/Locale/Data/si.xml +13 -10
  355. lib/Zend/Locale/Data/si_LK.xml +3 -3
  356. lib/Zend/Locale/Data/sid.xml +8 -16
  357. lib/Zend/Locale/Data/sid_ET.xml +3 -3
  358. lib/Zend/Locale/Data/sk.xml +427 -332
  359. lib/Zend/Locale/Data/sk_SK.xml +3 -3
  360. lib/Zend/Locale/Data/sl.xml +1374 -210
  361. lib/Zend/Locale/Data/sl_SI.xml +3 -3
  362. lib/Zend/Locale/Data/so.xml +18 -26
  363. lib/Zend/Locale/Data/so_DJ.xml +3 -13
  364. lib/Zend/Locale/Data/so_ET.xml +3 -13
  365. lib/Zend/Locale/Data/so_KE.xml +3 -10
  366. lib/Zend/Locale/Data/so_SO.xml +3 -3
  367. lib/Zend/Locale/Data/sq.xml +23 -29
  368. lib/Zend/Locale/Data/sq_AL.xml +3 -3
  369. lib/Zend/Locale/Data/sr.xml +3907 -257
  370. lib/Zend/Locale/Data/sr_BA.xml +3 -3
  371. lib/Zend/Locale/Data/sr_CS.xml +3 -3
  372. lib/Zend/Locale/Data/sr_Cyrl.xml +3 -3
  373. lib/Zend/Locale/Data/sr_Cyrl_BA.xml +4 -4
  374. lib/Zend/Locale/Data/sr_Cyrl_CS.xml +3 -3
  375. lib/Zend/Locale/Data/sr_Cyrl_ME.xml +3 -3
  376. lib/Zend/Locale/Data/sr_Cyrl_RS.xml +3 -3
  377. lib/Zend/Locale/Data/sr_Cyrl_YU.xml +3 -3
  378. lib/Zend/Locale/Data/sr_Latn.xml +3953 -164
  379. lib/Zend/Locale/Data/sr_Latn_BA.xml +3 -3
  380. lib/Zend/Locale/Data/sr_Latn_CS.xml +3 -3
  381. lib/Zend/Locale/Data/sr_Latn_ME.xml +3 -10
  382. lib/Zend/Locale/Data/sr_Latn_RS.xml +3 -4
  383. lib/Zend/Locale/Data/sr_Latn_YU.xml +3 -3
  384. lib/Zend/Locale/Data/sr_ME.xml +3 -3
  385. lib/Zend/Locale/Data/sr_RS.xml +3 -3
  386. lib/Zend/Locale/Data/sr_YU.xml +3 -3
  387. lib/Zend/Locale/Data/ss.xml +9 -14
  388. lib/Zend/Locale/Data/ss_SZ.xml +4 -3
  389. lib/Zend/Locale/Data/ss_ZA.xml +3 -3
  390. lib/Zend/Locale/Data/st.xml +8 -17
  391. lib/Zend/Locale/Data/st_LS.xml +10 -3
  392. lib/Zend/Locale/Data/st_ZA.xml +3 -3
  393. lib/Zend/Locale/Data/supplementalData.xml +2480 -1804
  394. lib/Zend/Locale/Data/sv.xml +552 -250
  395. lib/Zend/Locale/Data/sv_FI.xml +3 -12
  396. lib/Zend/Locale/Data/sv_SE.xml +3 -3
  397. lib/Zend/Locale/Data/sw.xml +8 -16
  398. lib/Zend/Locale/Data/sw_KE.xml +3 -3
  399. lib/Zend/Locale/Data/sw_TZ.xml +3 -3
  400. lib/Zend/Locale/Data/syr.xml +8 -100
  401. lib/Zend/Locale/Data/syr_SY.xml +3 -3
  402. lib/Zend/Locale/Data/ta.xml +685 -109
  403. lib/Zend/Locale/Data/ta_IN.xml +3 -3
  404. lib/Zend/Locale/Data/te.xml +891 -74
  405. lib/Zend/Locale/Data/te_IN.xml +3 -3
  406. lib/Zend/Locale/Data/telephoneCodeData.xml +4 -4
  407. lib/Zend/Locale/Data/tg.xml +7 -55
  408. lib/Zend/Locale/Data/tg_Cyrl.xml +3 -3
  409. lib/Zend/Locale/Data/tg_Cyrl_TJ.xml +3 -3
  410. lib/Zend/Locale/Data/tg_TJ.xml +3 -3
  411. lib/Zend/Locale/Data/th.xml +1029 -416
  412. lib/Zend/Locale/Data/th_TH.xml +3 -3
  413. lib/Zend/Locale/Data/ti.xml +10 -17
  414. lib/Zend/Locale/Data/ti_ER.xml +14 -23
  415. lib/Zend/Locale/Data/ti_ET.xml +3 -3
  416. lib/Zend/Locale/Data/tig.xml +10 -18
  417. lib/Zend/Locale/Data/tig_ER.xml +3 -3
  418. lib/Zend/Locale/Data/tl.xml +8 -8
  419. lib/Zend/Locale/Data/tn.xml +9 -18
  420. lib/Zend/Locale/Data/tn_ZA.xml +3 -3
  421. lib/Zend/Locale/Data/to.xml +15 -21
  422. lib/Zend/Locale/Data/to_TO.xml +3 -3
  423. lib/Zend/Locale/Data/tr.xml +324 -387
  424. lib/Zend/Locale/Data/tr_TR.xml +3 -3
  425. lib/Zend/Locale/Data/trv.xml +561 -0
  426. lib/Zend/Locale/Data/trv_TW.xml +10 -0
  427. lib/Zend/Locale/Data/ts.xml +3 -90
  428. lib/Zend/Locale/Data/ts_ZA.xml +3 -3
  429. lib/Zend/Locale/Data/tt.xml +7 -117
  430. lib/Zend/Locale/Data/tt_RU.xml +3 -3
  431. lib/Zend/Locale/Data/ug.xml +3 -157
  432. lib/Zend/Locale/Data/ug_Arab.xml +3 -4
  433. lib/Zend/Locale/Data/ug_Arab_CN.xml +3 -3
  434. lib/Zend/Locale/Data/ug_CN.xml +3 -3
  435. lib/Zend/Locale/Data/uk.xml +79 -189
  436. lib/Zend/Locale/Data/uk_UA.xml +3 -3
  437. lib/Zend/Locale/Data/ur.xml +24 -58
  438. lib/Zend/Locale/Data/ur_IN.xml +3 -4
  439. lib/Zend/Locale/Data/ur_PK.xml +3 -3
  440. lib/Zend/Locale/Data/uz.xml +8 -37
  441. lib/Zend/Locale/Data/uz_AF.xml +3 -3
  442. lib/Zend/Locale/Data/uz_Arab.xml +9 -8
  443. lib/Zend/Locale/Data/uz_Arab_AF.xml +3 -3
  444. lib/Zend/Locale/Data/uz_Cyrl.xml +3 -3
  445. lib/Zend/Locale/Data/uz_Cyrl_UZ.xml +3 -3
  446. lib/Zend/Locale/Data/uz_Latn.xml +23 -20
  447. lib/Zend/Locale/Data/uz_Latn_UZ.xml +3 -3
  448. lib/Zend/Locale/Data/uz_UZ.xml +3 -3
  449. lib/Zend/Locale/Data/ve.xml +7 -50
  450. lib/Zend/Locale/Data/ve_ZA.xml +3 -3
  451. lib/Zend/Locale/Data/vi.xml +39 -68
  452. lib/Zend/Locale/Data/vi_VN.xml +3 -3
  453. lib/Zend/Locale/Data/wal.xml +10 -41
  454. lib/Zend/Locale/Data/wal_ET.xml +3 -3
  455. lib/Zend/Locale/Data/wo.xml +3 -166
  456. lib/Zend/Locale/Data/wo_Latn.xml +3 -3
  457. lib/Zend/Locale/Data/wo_Latn_SN.xml +3 -3
  458. lib/Zend/Locale/Data/wo_SN.xml +3 -3
  459. lib/Zend/Locale/Data/xh.xml +6 -93
  460. lib/Zend/Locale/Data/xh_ZA.xml +3 -3
  461. lib/Zend/Locale/Data/yo.xml +7 -105
  462. lib/Zend/Locale/Data/yo_NG.xml +3 -3
  463. lib/Zend/Locale/Data/zh.xml +166 -237
  464. lib/Zend/Locale/Data/zh_CN.xml +3 -3
  465. lib/Zend/Locale/Data/zh_HK.xml +3 -3
  466. lib/Zend/Locale/Data/zh_Hans.xml +3 -3
  467. lib/Zend/Locale/Data/zh_Hans_CN.xml +3 -3
  468. lib/Zend/Locale/Data/zh_Hans_HK.xml +10 -3
  469. lib/Zend/Locale/Data/zh_Hans_MO.xml +3 -3
  470. lib/Zend/Locale/Data/zh_Hans_SG.xml +3 -20
  471. lib/Zend/Locale/Data/zh_Hant.xml +204 -245
  472. lib/Zend/Locale/Data/zh_Hant_HK.xml +21 -17
  473. lib/Zend/Locale/Data/zh_Hant_MO.xml +14 -21
  474. lib/Zend/Locale/Data/zh_Hant_TW.xml +3 -3
  475. lib/Zend/Locale/Data/zh_MO.xml +3 -3
  476. lib/Zend/Locale/Data/zh_SG.xml +3 -3
  477. lib/Zend/Locale/Data/zh_TW.xml +3 -3
  478. lib/Zend/Locale/Data/zu.xml +11 -44
  479. lib/Zend/Locale/Data/zu_ZA.xml +3 -3
  480. lib/Zend/Locale/Exception.php +3 -3
  481. lib/Zend/Locale/Format.php +318 -138
  482. lib/Zend/Locale/Math.php +172 -18
  483. lib/Zend/Locale/Math/Exception.php +5 -5
  484. lib/Zend/Locale/Math/PhpMath.php +10 -10
  485. package.xml +7 -7
lib/Zend/Locale.php CHANGED
@@ -14,9 +14,9 @@
14
*
15
* @category Zend
16
* @package Zend_Locale
17
- * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18
* @license http://framework.zend.com/license/new-bsd New BSD License
19
- * @version $Id: Locale.php 13368 2008-12-19 10:48:07Z thomas $
20
*/
21
22
/**
@@ -24,7 +24,7 @@
24
*
25
* @category Zend
26
* @package Zend_Locale
27
- * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
28
* @license http://framework.zend.com/license/new-bsd New BSD License
29
*/
30
class Zend_Locale
@@ -45,67 +45,71 @@ class Zend_Locale
45
'be' => true, 'bg_BG' => true, 'bg' => true, 'bn_BD' => true, 'bn_IN' => true,
46
'bn' => true, 'bo_CN' => true, 'bo_IN' => true, 'bo' => true, 'bs_BA' => true,
47
'bs' => true, 'byn_ER'=> true, 'byn' => true, 'ca_ES' => true, 'ca' => true,
48
- 'cch_NG'=> true, 'cch' => true, 'cop_EG'=> true, 'cop_US'=> true, 'cop' => true,
49
- 'cs_CZ' => true, 'cs' => true, 'cy_GB' => true, 'cy' => true, 'da_DK' => true,
50
- 'da' => true, 'de_AT' => true, 'de_BE' => true, 'de_CH' => true, 'de_DE' => true,
51
- 'de_LI' => true, 'de_LU' => true, 'de' => true, 'dv_MV' => true, 'dv' => true,
52
- 'dz_BT' => true, 'dz' => true, 'ee_GH' => true, 'ee_TG' => true, 'ee' => true,
53
- 'el_CY' => true, 'el_GR' => true, 'el' => true, 'en_AS' => true, 'en_AU' => true,
54
- 'en_BE' => true, 'en_BW' => true, 'en_BZ' => true, 'en_CA' => true, 'en_GB' => true,
55
- 'en_GU' => true, 'en_HK' => true, 'en_IE' => true, 'en_IN' => true, 'en_JM' => true,
56
- 'en_MH' => true, 'en_MP' => true, 'en_MT' => true, 'en_NZ' => true, 'en_PH' => true,
57
- 'en_PK' => true, 'en_SG' => true, 'en_TT' => true, 'en_UM' => true, 'en_US' => true,
58
- 'en_VI' => true, 'en_ZA' => true, 'en_ZW' => true, 'en' => true, 'eo' => true,
59
- 'es_AR' => true, 'es_BO' => true, 'es_CL' => true, 'es_CO' => true, 'es_CR' => true,
60
- 'es_DO' => true, 'es_EC' => true, 'es_ES' => true, 'es_GT' => true, 'es_HN' => true,
61
- 'es_MX' => true, 'es_NI' => true, 'es_PA' => true, 'es_PE' => true, 'es_PR' => true,
62
- 'es_PY' => true, 'es_SV' => true, 'es_US' => true, 'es_UY' => true, 'es_VE' => true,
63
- 'es' => true, 'et_EE' => true, 'et' => true, 'eu_ES' => true, 'eu' => true,
64
- 'fa_AF' => true, 'fa_IR' => true, 'fa' => true, 'fi_FI' => true, 'fi' => true,
65
'fil' => true, 'fo_FO' => true, 'fo' => true, 'fr_BE' => true, 'fr_CA' => true,
66
- 'fr_CH' => true, 'fr_FR' => true, 'fr_LU' => true, 'fr_MC' => true, 'fr' => true,
67
- 'fur_IT'=> true, 'fur' => true, 'ga_IE' => true, 'ga' => true, 'gaa_GH'=> true,
68
- 'gaa' => true, 'gez_ER'=> true, 'gez_ET'=> true, 'gez' => true, 'gl_ES' => true,
69
- 'gl' => true, 'gu_IN' => true, 'gu' => true, 'gv_GB' => true, 'gv' => true,
70
- 'ha_GH' => true, 'ha_NE' => true, 'ha_NG' => true, 'ha' => true, 'haw_US'=> true,
71
- 'haw' => true, 'he_IL' => true, 'he' => true, 'hi_IN' => true, 'hi' => true,
72
- 'hr_HR' => true, 'hr' => true, 'hu_HU' => true, 'hu' => true, 'hy_AM' => true,
73
- 'hy' => true, 'ia' => true, 'id_ID' => true, 'id' => true, 'ig_NG' => true,
74
- 'ig' => true, 'ii_CN' => true, 'ii' => true, 'is_IS' => true, 'is' => true,
75
- 'it_CH' => true, 'it_IT' => true, 'it' => true, 'iu' => true, 'ja_JP' => true,
76
- 'ja' => true, 'ka_GE' => true, 'ka' => true, 'kaj_NG'=> true, 'kaj' => true,
77
- 'kam_KE'=> true, 'kam' => true, 'kcg_NG'=> true, 'kcg' => true, 'kfo_NG'=> true,
78
- 'kfo' => true, 'kk_KZ' => true, 'kk' => true, 'kl_GL' => true, 'kl' => true,
79
- 'km_KH' => true, 'km' => true, 'kn_IN' => true, 'kn' => true, 'ko_KR' => true,
80
- 'ko' => true, 'kok_IN'=> true, 'kok' => true, 'kpe_GN'=> true, 'kpe_LR'=> true,
81
- 'kpe' => true, 'ku_IQ' => true, 'ku_IR' => true, 'ku_SY' => true, 'ku_TR' => true,
82
- 'ku' => true, 'kw_GB' => true, 'kw' => true, 'ky_KG' => true, 'ky' => true,
83
- 'ln_CD' => true, 'ln_CG' => true, 'ln' => true, 'lo_LA' => true, 'lo' => true,
84
- 'lt_LT' => true, 'lt' => true, 'lv_LV' => true, 'lv' => true, 'mk_MK' => true,
85
- 'mk' => true, 'ml_IN' => true, 'ml' => true, 'mn_MN' => true, 'mn' => true,
86
- 'mr_IN' => true, 'mr' => true, 'ms_BN' => true, 'ms_MY' => true, 'ms' => true,
87
- 'mt_MT' => true, 'mt' => true, 'my_MM' => true, 'my' => true, 'nb_NO' => true,
88
- 'nb' => true, 'ne_NP' => true, 'ne' => true, 'nl_BE' => true, 'nl_NL' => true,
89
- 'nl' => true, 'nn_NO' => true, 'nn' => true, 'nr_ZA' => true, 'nr' => true,
90
- 'nso_ZA'=> true, 'nso' => true, 'ny_MW' => true, 'ny' => true, 'om_ET' => true,
91
- 'om_KE' => true, 'om' => true, 'or_IN' => true, 'or' => true, 'pa_IN' => true,
92
- 'pa_PK' => true, 'pa' => true, 'pl_PL' => true, 'pl' => true, 'ps_AF' => true,
93
- 'ps' => true, 'pt_BR' => true, 'pt_PT' => true, 'pt' => true, 'ro_RO' => true,
94
'ro' => true, 'ru_RU' => true, 'ru_UA' => true, 'ru' => true, 'rw_RW' => true,
95
'rw' => true, 'sa_IN' => true, 'sa' => true, 'se_FI' => true, 'se_NO' => true,
96
'se' => true, 'sh_BA' => true, 'sh_CS' => true, 'sh_YU' => true, 'sh' => true,
97
- 'sid_ET'=> true, 'sid' => true, 'sk_SK' => true, 'sk' => true, 'sl_SI' => true,
98
- 'sl' => true, 'so_DJ' => true, 'so_ET' => true, 'so_KE' => true, 'so_SO' => true,
99
- 'so' => true, 'sq_AL' => true, 'sq' => true, 'sr_BA' => true, 'sr_CS' => true,
100
- 'sr_ME' => true, 'sr_RS' => true, 'sr_YU' => true, 'sr' => true, 'ss_ZA' => true,
101
- 'ss' => true, 'ssy' => true, 'st_ZA' => true, 'st' => true, 'sv_FI' => true,
102
- 'sv_SE' => true, 'sv' => true, 'sw_KE' => true, 'sw_TZ' => true, 'sw' => true,
103
- 'syr_SY'=> true, 'syr' => true, 'ta_IN' => true, 'ta' => true, 'te_IN' => true,
104
- 'te' => true, 'tg_TJ' => true, 'tg' => true, 'th_TH' => true, 'th' => true,
105
- 'ti_ER' => true, 'ti_ET' => true, 'ti' => true, 'tig_ER'=> true, 'tig' => true,
106
- 'tn_ZA' => true, 'tn' => true, 'to_TO' => true, 'to' => true, 'tr_TR' => true,
107
- 'tr' => true, 'ts_ZA' => true, 'ts' => true, 'tt_RU' => true, 'tt' => true,
108
- 'ug' => true, 'uk_UA' => true, 'uk' => true, 'und_ZZ'=> true, 'und' => true,
109
'ur_IN' => true, 'ur_PK' => true, 'ur' => true, 'uz_AF' => true, 'uz_UZ' => true,
110
'uz' => true, 've_ZA' => true, 've' => true, 'vi_VN' => true, 'vi' => true,
111
'wal_ET'=> true, 'wal' => true, 'wo_SN' => true, 'wo' => true, 'xh_ZA' => true,
@@ -127,7 +131,7 @@ class Zend_Locale
127
*
128
* @var boolean
129
*/
130
- public static $compatibilityMode = true;
131
132
/**
133
* Internal variable
@@ -247,7 +251,7 @@ class Zend_Locale
247
}
248
249
/**
250
- * Sets a new default locale
251
* If provided you can set a quality between 0 and 1 (or 2 and 100)
252
* which represents the percent of quality the browser
253
* requested within HTTP
@@ -275,12 +279,13 @@ class Zend_Locale
275
$quality /= 100;
276
}
277
278
if (isset(self::$_localeData[(string) $locale]) === true) {
279
self::$_default = array((string) $locale => $quality);
280
} else {
281
- $locale = explode('_', (string) $locale);
282
- if (isset(self::$_localeData[$locale[0]]) === true) {
283
- self::$_default = array($locale[0] => $quality);
284
} else {
285
#require_once 'Zend/Locale/Exception.php';
286
throw new Zend_Locale_Exception("Unknown locale '" . (string) $locale . "' can not be set as default!");
@@ -440,7 +445,7 @@ class Zend_Locale
440
/**
441
* Returns the language part of the locale
442
*
443
- * @return language
444
*/
445
public function getLanguage()
446
{
@@ -538,9 +543,11 @@ class Zend_Locale
538
*
539
* @param string|Zend_Locale $locale (Optional) Locale for language translation
540
* @return array
541
*/
542
public static function getLanguageTranslationList($locale = null)
543
{
544
return self::getTranslationList('language', $locale);
545
}
546
@@ -549,9 +556,11 @@ class Zend_Locale
549
*
550
* @param string|Zend_Locale $locale (Optional) Locale for script translation
551
* @return array
552
*/
553
public static function getScriptTranslationList($locale = null)
554
{
555
return self::getTranslationList('script', $locale);
556
}
557
@@ -560,9 +569,11 @@ class Zend_Locale
560
*
561
* @param string|Zend_Locale $locale (Optional) Locale for country translation
562
* @return array
563
*/
564
public static function getCountryTranslationList($locale = null)
565
{
566
return self::getTranslationList('territory', $locale, 2);
567
}
568
@@ -572,9 +583,11 @@ class Zend_Locale
572
*
573
* @param string|Zend_Locale $locale (Optional) Locale for territory translation
574
* @return array
575
*/
576
public static function getTerritoryTranslationList($locale = null)
577
{
578
return self::getTranslationList('territory', $locale, 1);
579
}
580
@@ -605,9 +618,11 @@ class Zend_Locale
605
* @param string $value Name to get detailed information about
606
* @param string $locale (Optional) Locale for language translation
607
* @return array
608
*/
609
public static function getLanguageTranslation($value, $locale = null)
610
{
611
return self::getTranslation($value, 'language', $locale);
612
}
613
@@ -617,9 +632,11 @@ class Zend_Locale
617
* @param string $value Name to get detailed information about
618
* @param string $locale (Optional) locale for script translation
619
* @return array
620
*/
621
public static function getScriptTranslation($value, $locale = null)
622
{
623
return self::getTranslation($value, 'script', $locale);
624
}
625
@@ -629,9 +646,11 @@ class Zend_Locale
629
* @param string $value Name to get detailed information about
630
* @param string|Zend_Locale $locale (Optional) Locale for country translation
631
* @return array
632
*/
633
public static function getCountryTranslation($value, $locale = null)
634
{
635
return self::getTranslation($value, 'country', $locale);
636
}
637
@@ -642,9 +661,11 @@ class Zend_Locale
642
* @param string $value Name to get detailed information about
643
* @param string|Zend_Locale $locale (Optional) Locale for territory translation
644
* @return array
645
*/
646
public static function getTerritoryTranslation($value, $locale = null)
647
{
648
return self::getTranslation($value, 'territory', $locale);
649
}
650
@@ -728,6 +749,14 @@ class Zend_Locale
728
*/
729
public static function isLocale($locale, $strict = false, $compatible = true)
730
{
731
try {
732
$locale = self::_prepareLocale($locale, $strict);
733
} catch (Zend_Locale_Exception $e) {
@@ -873,6 +902,18 @@ class Zend_Locale
873
Zend_Locale_Data::clearCache();
874
}
875
876
/**
877
* Internal function, returns a single locale on detection
878
*
@@ -930,6 +971,18 @@ class Zend_Locale
930
$locale = strtr($locale, '-', '_');
931
}
932
933
return (string) $locale;
934
}
935
14
*
15
* @category Zend
16
* @package Zend_Locale
17
+ * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18
* @license http://framework.zend.com/license/new-bsd New BSD License
19
+ * @version $Id: Locale.php 17479 2009-08-09 08:19:03Z thomas $
20
*/
21
22
/**
24
*
25
* @category Zend
26
* @package Zend_Locale
27
+ * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
28
* @license http://framework.zend.com/license/new-bsd New BSD License
29
*/
30
class Zend_Locale
45
'be' => true, 'bg_BG' => true, 'bg' => true, 'bn_BD' => true, 'bn_IN' => true,
46
'bn' => true, 'bo_CN' => true, 'bo_IN' => true, 'bo' => true, 'bs_BA' => true,
47
'bs' => true, 'byn_ER'=> true, 'byn' => true, 'ca_ES' => true, 'ca' => true,
48
+ 'cch_NG'=> true, 'cch' => true, 'cop' => true, 'cs_CZ' => true, 'cs' => true,
49
+ 'cy_GB' => true, 'cy' => true, 'da_DK' => true, 'da' => true, 'de_AT' => true,
50
+ 'de_BE' => true, 'de_CH' => true, 'de_DE' => true, 'de_LI' => true, 'de_LU' => true,
51
+ 'de' => true, 'dv_MV' => true, 'dv' => true, 'dz_BT' => true, 'dz' => true,
52
+ 'ee_GH' => true, 'ee_TG' => true, 'ee' => true, 'el_CY' => true, 'el_GR' => true,
53
+ 'el' => true, 'en_AS' => true, 'en_AU' => true, 'en_BE' => true, 'en_BW' => true,
54
+ 'en_BZ' => true, 'en_CA' => true, 'en_GB' => true, 'en_GU' => true, 'en_HK' => true,
55
+ 'en_IE' => true, 'en_IN' => true, 'en_JM' => true, 'en_MH' => true, 'en_MP' => true,
56
+ 'en_MT' => true, 'en_NA' => true, 'en_NZ' => true, 'en_PH' => true, 'en_PK' => true,
57
+ 'en_SG' => true, 'en_TT' => true, 'en_UM' => true, 'en_US' => true, 'en_VI' => true,
58
+ 'en_ZA' => true, 'en_ZW' => true, 'en' => true, 'eo' => true, 'es_AR' => true,
59
+ 'es_BO' => true, 'es_CL' => true, 'es_CO' => true, 'es_CR' => true, 'es_DO' => true,
60
+ 'es_EC' => true, 'es_ES' => true, 'es_GT' => true, 'es_HN' => true, 'es_MX' => true,
61
+ 'es_NI' => true, 'es_PA' => true, 'es_PE' => true, 'es_PR' => true, 'es_PY' => true,
62
+ 'es_SV' => true, 'es_US' => true, 'es_UY' => true, 'es_VE' => true, 'es' => true,
63
+ 'et_EE' => true, 'et' => true, 'eu_ES' => true, 'eu' => true, 'fa_AF' => true,
64
+ 'fa_IR' => true, 'fa' => true, 'fi_FI' => true, 'fi' => true, 'fil_PH'=> true,
65
'fil' => true, 'fo_FO' => true, 'fo' => true, 'fr_BE' => true, 'fr_CA' => true,
66
+ 'fr_CH' => true, 'fr_FR' => true, 'fr_LU' => true, 'fr_MC' => true, 'fr_SN' => true,
67
+ 'fr' => true, 'fur_IT'=> true, 'fur' => true, 'ga_IE' => true, 'ga' => true,
68
+ 'gaa_GH'=> true, 'gaa' => true, 'gez_ER'=> true, 'gez_ET'=> true, 'gez' => true,
69
+ 'gl_ES' => true, 'gl' => true, 'gsw_CH'=> true, 'gsw' => true, 'gu_IN' => true,
70
+ 'gu' => true, 'gv_GB' => true, 'gv' => true, 'ha_GH' => true, 'ha_NE' => true,
71
+ 'ha_NG' => true, 'ha_SD' => true, 'ha' => true, 'haw_US'=> true, 'haw' => true,
72
+ 'he_IL' => true, 'he' => true, 'hi_IN' => true, 'hi' => true, 'hr_HR' => true,
73
+ 'hr' => true, 'hu_HU' => true, 'hu' => true, 'hy_AM' => true, 'hy' => true,
74
+ 'ia' => true, 'id_ID' => true, 'id' => true, 'ig_NG' => true, 'ig' => true,
75
+ 'ii_CN' => true, 'ii' => true, 'in' => true, 'is_IS' => true, 'is' => true,
76
+ 'it_CH' => true, 'it_IT' => true, 'it' => true, 'iu' => true, 'iw' => true,
77
+ 'ja_JP' => true, 'ja' => true, 'ka_GE' => true, 'ka' => true, 'kaj_NG'=> true,
78
+ 'kaj' => true, 'kam_KE'=> true, 'kam' => true, 'kcg_NG'=> true, 'kcg' => true,
79
+ 'kfo_CI'=> true, 'kfo' => true, 'kk_KZ' => true, 'kk' => true, 'kl_GL' => true,
80
+ 'kl' => true, 'km_KH' => true, 'km' => true, 'kn_IN' => true, 'kn' => true,
81
+ 'ko_KR' => true, 'ko' => true, 'kok_IN'=> true, 'kok' => true, 'kpe_GN'=> true,
82
+ 'kpe_LR'=> true, 'kpe' => true, 'ku_IQ' => true, 'ku_IR' => true, 'ku_SY' => true,
83
+ 'ku_TR' => true, 'ku' => true, 'kw_GB' => true, 'kw' => true, 'ky_KG' => true,
84
+ 'ky' => true, 'ln_CD' => true, 'ln_CG' => true, 'ln' => true, 'lo_LA' => true,
85
+ 'lo' => true, 'lt_LT' => true, 'lt' => true, 'lv_LV' => true, 'lv' => true,
86
+ 'mk_MK' => true, 'mk' => true, 'ml_IN' => true, 'ml' => true, 'mn_CN' => true,
87
+ 'mn_MN' => true, 'mn' => true, 'mo' => true, 'mr_IN' => true, 'mr' => true,
88
+ 'ms_BN' => true, 'ms_MY' => true, 'ms' => true, 'mt_MT' => true, 'mt' => true,
89
+ 'my_MM' => true, 'my' => true, 'nb_NO' => true, 'nb' => true, 'nds_DE'=> true,
90
+ 'nds' => true, 'ne_IN' => true, 'ne_NP' => true, 'ne' => true, 'nl_BE' => true,
91
+ 'nl_NL' => true, 'nl' => true, 'nn_NO' => true, 'nn' => true, 'no' => true,
92
+ 'nr_ZA' => true, 'nr' => true, 'nso_ZA'=> true, 'nso' => true, 'ny_MW' => true,
93
+ 'ny' => true, 'oc_FR' => true, 'oc' => true, 'om_ET' => true, 'om_KE' => true,
94
+ 'om' => true, 'or_IN' => true, 'or' => true, 'pa_IN' => true, 'pa_PK' => true,
95
+ 'pa' => true, 'pl_PL' => true, 'pl' => true, 'ps_AF' => true, 'ps' => true,
96
+ 'pt_BR' => true, 'pt_PT' => true, 'pt' => true, 'ro_MD' => true, 'ro_RO' => true,
97
'ro' => true, 'ru_RU' => true, 'ru_UA' => true, 'ru' => true, 'rw_RW' => true,
98
'rw' => true, 'sa_IN' => true, 'sa' => true, 'se_FI' => true, 'se_NO' => true,
99
'se' => true, 'sh_BA' => true, 'sh_CS' => true, 'sh_YU' => true, 'sh' => true,
100
+ 'si_LK' => true, 'si' => true, 'sid_ET'=> true, 'sid' => true, 'sk_SK' => true,
101
+ 'sk' => true, 'sl_SI' => true, 'sl' => true, 'so_DJ' => true, 'so_ET' => true,
102
+ 'so_KE' => true, 'so_SO' => true, 'so' => true, 'sq_AL' => true, 'sq' => true,
103
+ 'sr_BA' => true, 'sr_CS' => true, 'sr_ME' => true, 'sr_RS' => true, 'sr_YU' => true,
104
+ 'sr' => true, 'ss_SZ' => true, 'ss_ZA' => true, 'ss' => true, 'st_LS' => true,
105
+ 'st_ZA' => true, 'st' => true, 'sv_FI' => true, 'sv_SE' => true, 'sv' => true,
106
+ 'sw_KE' => true, 'sw_TZ' => true, 'sw' => true, 'syr_SY'=> true, 'syr' => true,
107
+ 'ta_IN' => true, 'ta' => true, 'te_IN' => true, 'te' => true, 'tg_TJ' => true,
108
+ 'tg' => true, 'th_TH' => true, 'th' => true, 'ti_ER' => true, 'ti_ET' => true,
109
+ 'ti' => true, 'tig_ER'=> true, 'tig' => true, 'tl' => true, 'tn_ZA' => true,
110
+ 'tn' => true, 'to_TO' => true, 'to' => true, 'tr_TR' => true, 'tr' => true,
111
+ 'trv_TW'=> true, 'trv' => true, 'ts_ZA' => true, 'ts' => true, 'tt_RU' => true,
112
+ 'tt' => true, 'ug_CN' => true, 'ug' => true, 'uk_UA' => true, 'uk' => true,
113
'ur_IN' => true, 'ur_PK' => true, 'ur' => true, 'uz_AF' => true, 'uz_UZ' => true,
114
'uz' => true, 've_ZA' => true, 've' => true, 'vi_VN' => true, 'vi' => true,
115
'wal_ET'=> true, 'wal' => true, 'wo_SN' => true, 'wo' => true, 'xh_ZA' => true,
131
*
132
* @var boolean
133
*/
134
+ public static $compatibilityMode = false;
135
136
/**
137
* Internal variable
251
}
252
253
/**
254
+ * Sets a new default locale which will be used when no locale can be detected
255
* If provided you can set a quality between 0 and 1 (or 2 and 100)
256
* which represents the percent of quality the browser
257
* requested within HTTP
279
$quality /= 100;
280
}
281
282
+ $locale = self::_prepareLocale($locale);
283
if (isset(self::$_localeData[(string) $locale]) === true) {
284
self::$_default = array((string) $locale => $quality);
285
} else {
286
+ $elocale = explode('_', (string) $locale);
287
+ if (isset(self::$_localeData[$elocale[0]]) === true) {
288
+ self::$_default = array($elocale[0] => $quality);
289
} else {
290
#require_once 'Zend/Locale/Exception.php';
291
throw new Zend_Locale_Exception("Unknown locale '" . (string) $locale . "' can not be set as default!");
445
/**
446
* Returns the language part of the locale
447
*
448
+ * @return string
449
*/
450
public function getLanguage()
451
{
543
*
544
* @param string|Zend_Locale $locale (Optional) Locale for language translation
545
* @return array
546
+ * @deprecated
547
*/
548
public static function getLanguageTranslationList($locale = null)
549
{
550
+ trigger_error("The method getLanguageTranslationList is deprecated. Use getTranslationList('language', $locale) instead", E_USER_NOTICE);
551
return self::getTranslationList('language', $locale);
552
}
553
556
*
557
* @param string|Zend_Locale $locale (Optional) Locale for script translation
558
* @return array
559
+ * @deprecated
560
*/
561
public static function getScriptTranslationList($locale = null)
562
{
563
+ trigger_error("The method getScriptTranslationList is deprecated. Use getTranslationList('script', $locale) instead", E_USER_NOTICE);
564
return self::getTranslationList('script', $locale);
565
}
566
569
*
570
* @param string|Zend_Locale $locale (Optional) Locale for country translation
571
* @return array
572
+ * @deprecated
573
*/
574
public static function getCountryTranslationList($locale = null)
575
{
576
+ trigger_error("The method getCountryTranslationList is deprecated. Use getTranslationList('territory', $locale, 2) instead", E_USER_NOTICE);
577
return self::getTranslationList('territory', $locale, 2);
578
}
579
583
*
584
* @param string|Zend_Locale $locale (Optional) Locale for territory translation
585
* @return array
586
+ * @deprecated
587
*/
588
public static function getTerritoryTranslationList($locale = null)
589
{
590
+ trigger_error("The method getTerritoryTranslationList is deprecated. Use getTranslationList('territory', $locale, 1) instead", E_USER_NOTICE);
591
return self::getTranslationList('territory', $locale, 1);
592
}
593
618
* @param string $value Name to get detailed information about
619
* @param string $locale (Optional) Locale for language translation
620
* @return array
621
+ * @deprecated
622
*/
623
public static function getLanguageTranslation($value, $locale = null)
624
{
625
+ trigger_error("The method getLanguageTranslation is deprecated. Use getTranslation($value, 'language', $locale) instead", E_USER_NOTICE);
626
return self::getTranslation($value, 'language', $locale);
627
}
628
632
* @param string $value Name to get detailed information about
633
* @param string $locale (Optional) locale for script translation
634
* @return array
635
+ * @deprecated
636
*/
637
public static function getScriptTranslation($value, $locale = null)
638
{
639
+ trigger_error("The method getScriptTranslation is deprecated. Use getTranslation($value, 'script', $locale) instead", E_USER_NOTICE);
640
return self::getTranslation($value, 'script', $locale);
641
}
642
646
* @param string $value Name to get detailed information about
647
* @param string|Zend_Locale $locale (Optional) Locale for country translation
648
* @return array
649
+ * @deprecated
650
*/
651
public static function getCountryTranslation($value, $locale = null)
652
{
653
+ trigger_error("The method getCountryTranslation is deprecated. Use getTranslation($value, 'country', $locale) instead", E_USER_NOTICE);
654
return self::getTranslation($value, 'country', $locale);
655
}
656
661
* @param string $value Name to get detailed information about
662
* @param string|Zend_Locale $locale (Optional) Locale for territory translation
663
* @return array
664
+ * @deprecated
665
*/
666
public static function getTerritoryTranslation($value, $locale = null)
667
{
668
+ trigger_error("The method getTerritoryTranslation is deprecated. Use getTranslation($value, 'territory', $locale) instead", E_USER_NOTICE);
669
return self::getTranslation($value, 'territory', $locale);
670
}
671
749
*/
750
public static function isLocale($locale, $strict = false, $compatible = true)
751
{
752
+ if ($locale instanceof Zend_Locale) {
753
+ return true;
754
+ }
755
+
756
+ if (($locale !== null) and !is_string($locale) and !is_array($locale)) {
757
+ return false;
758
+ }
759
+
760
try {
761
$locale = self::_prepareLocale($locale, $strict);
762
} catch (Zend_Locale_Exception $e) {
902
Zend_Locale_Data::clearCache();
903
}
904
905
+ /**
906
+ * Disables the set cache
907
+ *
908
+ * @param boolean $flag True disables any set cache, default is false
909
+ * @return void
910
+ */
911
+ public static function disableCache($flag)
912
+ {
913
+ #require_once 'Zend/Locale/Data.php';
914
+ Zend_Locale_Data::disableCache($flag);
915
+ }
916
+
917
/**
918
* Internal function, returns a single locale on detection
919
*
971
$locale = strtr($locale, '-', '_');
972
}
973
974
+ $parts = explode('_', $locale);
975
+ if (!isset(self::$_localeData[$parts[0]])) {
976
+ return '';
977
+ }
978
+
979
+ foreach($parts as $key => $value) {
980
+ if ((strlen($value) < 2) || (strlen($value) > 3)) {
981
+ unset($parts[$key]);
982
+ }
983
+ }
984
+
985
+ $locale = implode('_', $parts);
986
return (string) $locale;
987
}
988
lib/Zend/Locale/Data.php CHANGED
@@ -15,9 +15,9 @@
15
* @category Zend
16
* @package Zend_Locale
17
* @subpackage Data
18
- * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
19
* @license http://framework.zend.com/license/new-bsd New BSD License
20
- * @version $Id: Data.php 12057 2008-10-21 17:19:43Z thomas $
21
*/
22
23
/**
@@ -31,7 +31,7 @@
31
* @category Zend
32
* @package Zend_Locale
33
* @subpackage Data
34
- * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
35
* @license http://framework.zend.com/license/new-bsd New BSD License
36
*/
37
class Zend_Locale_Data
@@ -60,6 +60,14 @@ class Zend_Locale_Data
60
*/
61
private static $_cache = null;
62
63
/**
64
* Read the content from locale
65
*
@@ -202,7 +210,6 @@ class Zend_Locale_Data
202
return true;
203
}
204
205
-
206
/**
207
* Read the right LDML file
208
*
@@ -236,7 +243,6 @@ class Zend_Locale_Data
236
return $temp;
237
}
238
239
-
240
/**
241
* Find the details for supplemental calendar datas
242
*
@@ -291,17 +297,25 @@ class Zend_Locale_Data
291
public static function getList($locale, $path, $value = false)
292
{
293
$locale = self::_checkLocale($locale);
294
- if (isset(self::$_cache)) {
295
- $val = $value;
296
- if (is_array($value)) {
297
- $val = implode('_' , $value);
298
- }
299
300
- $val = urlencode($val);
301
- $id = strtr('Zend_LocaleL_' . $locale . '_' . $path . '_' . $val, array('-' => '_', '%' => '_', '+' => '_'));
302
- if ($result = self::$_cache->load($id)) {
303
- return unserialize($result);
304
- }
305
}
306
307
$temp = array();
@@ -505,7 +519,46 @@ class Zend_Locale_Data
505
if (empty($value)) {
506
$value = "gregorian";
507
}
508
- $temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/availableFormats/dateFormatItem', 'id');
509
break;
510
511
case 'field':
@@ -744,6 +797,103 @@ class Zend_Locale_Data
744
}
745
break;
746
747
default :
748
#require_once 'Zend/Locale/Exception.php';
749
throw new Zend_Locale_Exception("Unknown list ($path) for parsing locale data.");
@@ -770,16 +920,23 @@ class Zend_Locale_Data
770
{
771
$locale = self::_checkLocale($locale);
772
773
- if (isset(self::$_cache)) {
774
- $val = $value;
775
- if (is_array($value)) {
776
- $val = implode('_' , $value);
777
- }
778
- $val = urlencode($val);
779
- $id = strtr('Zend_LocaleC_' . $locale . '_' . $path . '_' . $val, array('-' => '_', '%' => '_', '+' => '_'));
780
- if ($result = self::$_cache->load($id)) {
781
- return unserialize($result);
782
- }
783
}
784
785
switch(strtolower($path)) {
@@ -804,10 +961,6 @@ class Zend_Locale_Data
804
$temp = self::_getFile($locale, '/ldml/localeDisplayNames/keys/key[@type=\'' . $value . '\']', 'type');
805
break;
806
807
- case 'datechars':
808
- $temp = self::_getFile($locale, '/ldml/dates/localizedPatternChars', '', 'chars');
809
- break;
810
-
811
case 'defaultcalendar':
812
$temp = self::_getFile($locale, '/ldml/dates/calendars/default', 'choice', 'default');
813
break;
@@ -924,9 +1077,39 @@ class Zend_Locale_Data
924
925
case 'datetime':
926
if (empty($value)) {
927
- $value = "gregorian";
928
}
929
- $temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/dateTimeFormatLength/dateTimeFormat/pattern', '', 'pattern');
930
break;
931
932
case 'field':
@@ -986,10 +1169,6 @@ class Zend_Locale_Data
986
$temp = self::_getFile($locale, '/ldml/numbers/currencies/currency[@type=\'' . $value . '\']/symbol', '', $value);
987
break;
988
989
- case 'currencysymbolchoice':
990
- $temp = self::_getFile($locale, '/ldml/numbers/currencies/currency[@type=\'' . $value . '\']/symbol/@choice', '', $value);
991
- break;
992
-
993
case 'question':
994
$temp = self::_getFile($locale, '/ldml/posix/messages/' . $value . 'str', '', $value);
995
break;
@@ -1140,6 +1319,81 @@ class Zend_Locale_Data
1140
}
1141
break;
1142
1143
default :
1144
#require_once 'Zend/Locale/Exception.php';
1145
throw new Zend_Locale_Exception("Unknown detail ($path) for parsing locale data.");
@@ -1209,4 +1463,14 @@ class Zend_Locale_Data
1209
{
1210
self::$_cache->clean();
1211
}
1212
}
15
* @category Zend
16
* @package Zend_Locale
17
* @subpackage Data
18
+ * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19
* @license http://framework.zend.com/license/new-bsd New BSD License
20
+ * @version $Id: Data.php 16561 2009-07-08 15:05:06Z thomas $
21
*/
22
23
/**
31
* @category Zend
32
* @package Zend_Locale
33
* @subpackage Data
34
+ * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
35
* @license http://framework.zend.com/license/new-bsd New BSD License
36
*/
37
class Zend_Locale_Data
60
*/
61
private static $_cache = null;
62
63
+ /**
64
+ * Internal option, cache disabled
65
+ *
66
+ * @var boolean
67
+ * @access private
68
+ */
69
+ private static $_cacheDisabled = false;
70
+
71
/**
72
* Read the content from locale
73
*
210
return true;
211
}
212
213
/**
214
* Read the right LDML file
215
*
243
return $temp;
244
}
245
246
/**
247
* Find the details for supplemental calendar datas
248
*
297
public static function getList($locale, $path, $value = false)
298
{
299
$locale = self::_checkLocale($locale);
300
301
+ if (!isset(self::$_cache) && !self::$_cacheDisabled) {
302
+ #require_once 'Zend/Cache.php';
303
+ self::$_cache = Zend_Cache::factory(
304
+ 'Core',
305
+ 'File',
306
+ array('automatic_serialization' => true),
307
+ array());
308
+ }
309
+
310
+ $val = $value;
311
+ if (is_array($value)) {
312
+ $val = implode('_' , $value);
313
+ }
314
+
315
+ $val = urlencode($val);
316
+ $id = strtr('Zend_LocaleL_' . $locale . '_' . $path . '_' . $val, array('-' => '_', '%' => '_', '+' => '_'));
317
+ if (!self::$_cacheDisabled && ($result = self::$_cache->load($id))) {
318
+ return unserialize($result);
319
}
320
321
$temp = array();
519
if (empty($value)) {
520
$value = "gregorian";
521
}
522
+
523
+ $timefull = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/timeFormats/timeFormatLength[@type=\'full\']/timeFormat/pattern', '', 'full');
524
+ $timelong = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/timeFormats/timeFormatLength[@type=\'long\']/timeFormat/pattern', '', 'long');
525
+ $timemedi = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/timeFormats/timeFormatLength[@type=\'medium\']/timeFormat/pattern', '', 'medi');
526
+ $timeshor = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/timeFormats/timeFormatLength[@type=\'short\']/timeFormat/pattern', '', 'shor');
527
+
528
+ $datefull = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateFormats/dateFormatLength[@type=\'full\']/dateFormat/pattern', '', 'full');
529
+ $datelong = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateFormats/dateFormatLength[@type=\'long\']/dateFormat/pattern', '', 'long');
530
+ $datemedi = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateFormats/dateFormatLength[@type=\'medium\']/dateFormat/pattern', '', 'medi');
531
+ $dateshor = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateFormats/dateFormatLength[@type=\'short\']/dateFormat/pattern', '', 'shor');
532
+
533
+ $full = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/dateTimeFormatLength[@type=\'full\']/dateTimeFormat/pattern', '', 'full');
534
+ $long = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/dateTimeFormatLength[@type=\'long\']/dateTimeFormat/pattern', '', 'long');
535
+ $medi = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/dateTimeFormatLength[@type=\'medium\']/dateTimeFormat/pattern', '', 'medi');
536
+ $shor = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/dateTimeFormatLength[@type=\'short\']/dateTimeFormat/pattern', '', 'shor');
537
+
538
+ $temp['full'] = str_replace(array('{0}', '{1}'), array($timefull['full'], $datefull['full']), $full['full']);
539
+ $temp['long'] = str_replace(array('{0}', '{1}'), array($timelong['long'], $datelong['long']), $long['long']);
540
+ $temp['medium'] = str_replace(array('{0}', '{1}'), array($timemedi['medi'], $datemedi['medi']), $medi['medi']);
541
+ $temp['short'] = str_replace(array('{0}', '{1}'), array($timeshor['shor'], $dateshor['shor']), $shor['shor']);
542
+ break;
543
+
544
+ case 'dateitem':
545
+ if (empty($value)) {
546
+ $value = "gregorian";
547
+ }
548
+ $_temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/availableFormats/dateFormatItem', 'id');
549
+ foreach($_temp as $key => $found) {
550
+ $temp += self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/availableFormats/dateFormatItem[@id=\'' . $key . '\']', '', $key);
551
+ }
552
+ break;
553
+
554
+ case 'dateinterval':
555
+ if (empty($value)) {
556
+ $value = "gregorian";
557
+ }
558
+ $_temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/intervalFormats/intervalFormatItem', 'id');
559
+ foreach($_temp as $key => $found) {
560
+ $temp[$key] = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/intervalFormats/intervalFormatItem[@id=\'' . $key . '\']/greatestDifference', 'id');
561
+ }
562
break;
563
564
case 'field':
797
}
798
break;
799
800
+ case 'phonetoterritory':
801
+ $_temp = self::_getFile('telephoneCodeData', '/supplementalData/telephoneCodeData/codesByTerritory', 'territory');
802
+ foreach ($_temp as $key => $keyvalue) {
803
+ $temp += self::_getFile('telephoneCodeData', '/supplementalData/telephoneCodeData/codesByTerritory[@territory=\'' . $key . '\']/telephoneCountryCode', 'code', $key);
804
+ }
805
+ break;
806
+
807
+ case 'territorytophone':
808
+ $_temp = self::_getFile('telephoneCodeData', '/supplementalData/telephoneCodeData/codesByTerritory', 'territory');
809
+ foreach ($_temp as $key => $keyvalue) {
810
+ $val = self::_getFile('telephoneCodeData', '/supplementalData/telephoneCodeData/codesByTerritory[@territory=\'' . $key . '\']/telephoneCountryCode', 'code', $key);
811
+ if (!isset($val[$key])) {
812
+ continue;
813
+ }
814
+ if (!isset($temp[$val[$key]])) {
815
+ $temp[$val[$key]] = $key;
816
+ } else {
817
+ $temp[$val[$key]] .= " " . $key;
818
+ }
819
+ }
820
+ break;
821
+
822
+ case 'numerictoterritory':
823
+ $_temp = self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes', 'type');
824
+ foreach ($_temp as $key => $keyvalue) {
825
+ $temp += self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes[@type=\'' . $key . '\']', 'numeric', $key);
826
+ }
827
+ break;
828
+
829
+ case 'territorytonumeric':
830
+ $_temp = self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes', 'numeric');
831
+ foreach ($_temp as $key => $keyvalue) {
832
+ $temp += self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes[@numeric=\'' . $key . '\']', 'type', $key);
833
+ }
834
+ break;
835
+
836
+ case 'alpha3toterritory':
837
+ $_temp = self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes', 'type');
838
+ foreach ($_temp as $key => $keyvalue) {
839
+ $temp += self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes[@type=\'' . $key . '\']', 'alpha3', $key);
840
+ }
841
+ break;
842
+
843
+ case 'territorytoalpha3':
844
+ $_temp = self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes', 'alpha3');
845
+ foreach ($_temp as $key => $keyvalue) {
846
+ $temp += self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes[@alpha3=\'' . $key . '\']', 'type', $key);
847
+ }
848
+ break;
849
+
850
+ case 'postaltoterritory':
851
+ $_temp = self::_getFile('postalCodeData', '/supplementalData/postalCodeData/postCodeRegex', 'territoryId');
852
+ foreach ($_temp as $key => $keyvalue) {
853
+ $temp += self::_getFile('postalCodeData', '/supplementalData/postalCodeData/postCodeRegex[@territoryId=\'' . $key . '\']', 'territoryId');
854
+ }
855
+ break;
856
+
857
+ case 'numberingsystem':
858
+ $_temp = self::_getFile('numberingSystems', '/supplementalData/numberingSystems/numberingSystem', 'id');
859
+ foreach ($_temp as $key => $keyvalue) {
860
+ $temp += self::_getFile('numberingSystems', '/supplementalData/numberingSystems/numberingSystem[@id=\'' . $key . '\']', 'digits', $key);
861
+ if (empty($temp[$key])) {
862
+ unset($temp[$key]);
863
+ }
864
+ }
865
+ break;
866
+
867
+ case 'chartofallback':
868
+ $_temp = self::_getFile('characters', '/supplementalData/characters/character-fallback/character', 'value');
869
+ foreach ($_temp as $key => $keyvalue) {
870
+ $temp2 = self::_getFile('characters', '/supplementalData/characters/character-fallback/character[@value=\'' . $key . '\']/substitute', '', $key);
871
+ $temp[current($temp2)] = $key;
872
+ }
873
+ break;
874
+
875
+ case 'fallbacktochar':
876
+ $_temp = self::_getFile('characters', '/supplementalData/characters/character-fallback/character', 'value');
877
+ foreach ($_temp as $key => $keyvalue) {
878
+ $temp += self::_getFile('characters', '/supplementalData/characters/character-fallback/character[@value=\'' . $key . '\']/substitute', '', $key);
879
+ }
880
+ break;
881
+
882
+ case 'localeupgrade':
883
+ $_temp = self::_getFile('likelySubtags', '/supplementalData/likelySubtags/likelySubtag', 'from');
884
+ foreach ($_temp as $key => $keyvalue) {
885
+ $temp += self::_getFile('likelySubtags', '/supplementalData/likelySubtags/likelySubtag[@from=\'' . $key . '\']', 'to', $key);
886
+ }
887
+ break;
888
+
889
+ case 'unit':
890
+ $_temp = self::_getFile($locale, '/ldml/units/unit', 'type');
891
+ foreach($_temp as $key => $keyvalue) {
892
+ $_temp2 = self::_getFile($locale, '/ldml/units/unit[@type=\'' . $key . '\']/unitPattern', 'count');
893
+ $temp[$key] = $_temp2;
894
+ }
895
+ break;
896
+
897
default :
898
#require_once 'Zend/Locale/Exception.php';
899
throw new Zend_Locale_Exception("Unknown list ($path) for parsing locale data.");
920
{
921
$locale = self::_checkLocale($locale);
922
923
+ if (!isset(self::$_cache) && !self::$_cacheDisabled) {
924
+ #require_once 'Zend/Cache.php';
925
+ self::$_cache = Zend_Cache::factory(
926
+ 'Core',
927
+ 'File',
928
+ array('automatic_serialization' => true),
929
+ array());
930
+ }
931
+
932
+ $val = $value;
933
+ if (is_array($value)) {
934
+ $val = implode('_' , $value);
935
+ }
936
+ $val = urlencode($val);
937
+ $id = strtr('Zend_LocaleC_' . $locale . '_' . $path . '_' . $val, array('-' => '_', '%' => '_', '+' => '_'));
938
+ if (!self::$_cacheDisabled && ($result = self::$_cache->load($id))) {
939
+ return unserialize($result);
940
}
941
942
switch(strtolower($path)) {
961
$temp = self::_getFile($locale, '/ldml/localeDisplayNames/keys/key[@type=\'' . $value . '\']', 'type');
962
break;
963
964
case 'defaultcalendar':
965
$temp = self::_getFile($locale, '/ldml/dates/calendars/default', 'choice', 'default');
966
break;
1077
1078
case 'datetime':
1079
if (empty($value)) {
1080
+ $value = array("gregorian", "medium");
1081
+ }
1082
+ if (!is_array($value)) {
1083
+ $temp = $value;
1084
+ $value = array("gregorian", $temp);
1085
+ }
1086
+
1087
+ $date = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value[0] . '\']/dateFormats/dateFormatLength[@type=\'' . $value[1] . '\']/dateFormat/pattern', '', 'pattern');
1088
+ $time = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value[0] . '\']/timeFormats/timeFormatLength[@type=\'' . $value[1] . '\']/timeFormat/pattern', '', 'pattern');
1089
+ $datetime = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value[0] . '\']/dateTimeFormats/dateTimeFormatLength[@type=\'' . $value[1] . '\']/dateTimeFormat/pattern', '', 'pattern');
1090
+ $temp = str_replace(array('{0}', '{1}'), array(current($time), current($date)), current($datetime));
1091
+ break;
1092
+
1093
+ case 'dateitem':
1094
+ if (empty($value)) {
1095
+ $value = array("gregorian", "yyMMdd");
1096
}
1097
+ if (!is_array($value)) {
1098
+ $temp = $value;
1099
+ $value = array("gregorian", $temp);
1100
+ }
1101
+ $temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value[0] . '\']/dateTimeFormats/availableFormats/dateFormatItem[@id=\'' . $value[1] . '\']', '');
1102
+ break;
1103
+
1104
+ case 'dateinterval':
1105
+ if (empty($value)) {
1106
+ $value = array("gregorian", "yMd", "y");
1107
+ }
1108
+ if (!is_array($value)) {
1109
+ $temp = $value;
1110
+ $value = array("gregorian", $temp, $temp[0]);
1111
+ }
1112
+ $temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value[0] . '\']/dateTimeFormats/intervalFormats/intervalFormatItem[@id=\'' . $value[1] . '\']/greatestDifference[@id=\'' . $value[2] . '\']', '');
1113
break;
1114
1115
case 'field':
1169
$temp = self::_getFile($locale, '/ldml/numbers/currencies/currency[@type=\'' . $value . '\']/symbol', '', $value);
1170
break;
1171
1172
case 'question':
1173
$temp = self::_getFile($locale, '/ldml/posix/messages/' . $value . 'str', '', $value);
1174
break;
1319
}
1320
break;
1321
1322
+ case 'phonetoterritory':
1323
+ $temp = self::_getFile('telephoneCodeData', '/supplementalData/telephoneCodeData/codesByTerritory[@territory=\'' . $value . '\']/telephoneCountryCode', 'code', $value);
1324
+ break;
1325
+
1326
+ case 'territorytophone':
1327
+ $_temp2 = self::_getFile('telephoneCodeData', '/supplementalData/telephoneCodeData/codesByTerritory', 'territory');
1328
+ $_temp = array();
1329
+ foreach ($_temp2 as $key => $found) {
1330
+ $_temp += self::_getFile('telephoneCodeData', '/supplementalData/telephoneCodeData/codesByTerritory[@territory=\'' . $key . '\']/telephoneCountryCode', 'code', $key);
1331
+ }
1332
+ $temp = array();
1333
+ foreach($_temp as $key => $found) {
1334
+ $_temp3 = explode(" ", $found);
1335
+ foreach($_temp3 as $found3) {
1336
+ if ($found3 !== $value) {
1337
+ continue;
1338
+ }
1339
+ if (!isset($temp[$found3])) {
1340
+ $temp[$found3] = (string) $key;
1341
+ } else {
1342
+ $temp[$found3] .= " " . $key;
1343
+ }
1344
+ }
1345
+ }
1346
+ break;
1347
+
1348
+ case 'numerictoterritory':
1349
+ $temp = self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes[@type=\''.$value.'\']', 'numeric', $value);
1350
+ break;
1351
+
1352
+ case 'territorytonumeric':
1353
+ $temp = self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes[@numeric=\''.$value.'\']', 'type', $value);
1354
+ break;
1355
+
1356
+ case 'alpha3toterritory':
1357
+ $temp = self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes[@type=\''.$value.'\']', 'alpha3', $value);
1358
+ break;
1359
+
1360
+ case 'territorytoalpha3':
1361
+ $temp = self::_getFile('supplementalData', '/supplementalData/codeMappings/territoryCodes[@alpha3=\''.$value.'\']', 'type', $value);
1362
+ break;
1363
+
1364
+ case 'postaltoterritory':
1365
+ $temp = self::_getFile('postalCodeData', '/supplementalData/postalCodeData/postCodeRegex[@territoryId=\'' . $value . '\']', 'territoryId');
1366
+ break;
1367
+
1368
+ case 'numberingsystem':
1369
+ $temp = self::_getFile('numberingSystems', '/supplementalData/numberingSystems/numberingSystem[@id=\'' . strtolower($value) . '\']', 'digits', $value);
1370
+ break;
1371
+
1372
+ case 'chartofallback':
1373
+ $_temp = self::_getFile('characters', '/supplementalData/characters/character-fallback/character', 'value');
1374
+ foreach ($_temp as $key => $keyvalue) {
1375
+ $temp2 = self::_getFile('characters', '/supplementalData/characters/character-fallback/character[@value=\'' . $key . '\']/substitute', '', $key);
1376
+ if (current($temp2) == $value) {
1377
+ $temp = $key;
1378
+ }
1379
+ }
1380
+ break;
1381
+
1382
+ $temp = self::_getFile('characters', '/supplementalData/characters/character-fallback/character[@value=\'' . $value . '\']/substitute', '', $value);
1383
+ break;
1384
+
1385
+ case 'fallbacktochar':
1386
+ $temp = self::_getFile('characters', '/supplementalData/characters/character-fallback/character[@value=\'' . $value . '\']/substitute', '');
1387
+ break;
1388
+
1389
+ case 'localeupgrade':
1390
+ $temp = self::_getFile('likelySubtags', '/supplementalData/likelySubtags/likelySubtag[@from=\'' . $value . '\']', 'to', $value);
1391
+ break;
1392
+
1393
+ case 'unit':
1394
+ $temp = self::_getFile($locale, '/ldml/units/unit[@type=\'' . $value[0] . '\']/unitPattern[@count=\'' . $value[1] . '\']', '');
1395
+ break;
1396
+
1397
default :
1398
#require_once 'Zend/Locale/Exception.php';
1399
throw new Zend_Locale_Exception("Unknown detail ($path) for parsing locale data.");
1463
{
1464
self::$_cache->clean();
1465
}
1466
+
1467
+ /**
1468
+ * Disables the cache
1469
+ *
1470
+ * @param unknown_type $flag
1471
+ */
1472
+ public static function disableCache($flag)
1473
+ {
1474
+ self::$_cacheDisabled = (boolean) $flag;
1475
+ }
1476
}
lib/Zend/Locale/Data/Translation.php CHANGED
@@ -14,9 +14,9 @@
14
*
15
* @category Zend
16
* @package Zend_Locale
17
- * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18
* @license http://framework.zend.com/license/new-bsd New BSD License
19
- * @version $Id: Locale.php 5357 2007-06-16 19:56:21Z thomas $
20
*/
21
22
/**
@@ -24,7 +24,7 @@
24
*
25
* @category Zend
26
* @package Zend_Locale
27
- * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
28
* @license http://framework.zend.com/license/new-bsd New BSD License
29
*/
30
class Zend_Locale_Data_Translation
14
*
15
* @category Zend
16
* @package Zend_Locale
17
+ * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18
* @license http://framework.zend.com/license/new-bsd New BSD License
19
+ * @version $Id: Translation.php 16971 2009-07-22 18:05:45Z mikaelkael $
20
*/
21
22
/**
24
*
25
* @category Zend
26
* @package Zend_Locale
27
+ * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
28
* @license http://framework.zend.com/license/new-bsd New BSD License
29
*/
30
class Zend_Locale_Data_Translation
lib/Zend/Locale/Data/aa.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.44 quot;/>
6
- <generation date="$Date: 2008/05/28 15:49:27 quot;/>
7
<language type="aa"/>
8
</identity>
9
<localeDisplayNames>
@@ -154,17 +154,17 @@
154
<dateFormats>
155
<dateFormatLength type="full">
156
<dateFormat>
157
- <pattern>EEEE, MMMM dd, yyyy</pattern>
158
</dateFormat>
159
</dateFormatLength>
160
<dateFormatLength type="long">
161
<dateFormat>
162
- <pattern>dd MMMM yyyy</pattern>
163
</dateFormat>
164
</dateFormatLength>
165
<dateFormatLength type="medium">
166
<dateFormat>
167
- <pattern>dd-MMM-yyyy</pattern>
168
</dateFormat>
169
</dateFormatLength>
170
<dateFormatLength type="short">
@@ -176,7 +176,7 @@
176
<timeFormats>
177
<timeFormatLength type="full">
178
<timeFormat>
179
- <pattern>h:mm:ss a v</pattern>
180
</timeFormat>
181
</timeFormatLength>
182
<timeFormatLength type="long">
@@ -196,11 +196,6 @@
196
</timeFormatLength>
197
</timeFormats>
198
<dateTimeFormats>
199
- <dateTimeFormatLength>
200
- <dateTimeFormat>
201
- <pattern>{1} {0}</pattern>
202
- </dateTimeFormat>
203
- </dateTimeFormatLength>
204
<availableFormats>
205
<dateFormatItem id="yyQ">Q yy</dateFormatItem>
206
</availableFormats>
@@ -221,40 +216,6 @@
221
</currencyFormat>
222
</currencyFormatLength>
223
</currencyFormats>
224
- <currencies>
225
- <currency type="BRL">
226
- <displayName>Brazilian Real</displayName>
227
- </currency>
228
- <currency type="CNY">
229
- <displayName>Chinese Yuan Renminbi</displayName>
230
- </currency>
231
- <currency type="DJF">
232
- <symbol>FD</symbol>
233
- </currency>
234
- <currency type="ERN">
235
- <symbol>Nfk</symbol>
236
- </currency>
237
- <currency type="ETB">
238
- <symbol>Br</symbol>
239
- </currency>
240
- <currency type="EUR">
241
- <displayName>Euro</displayName>
242
- </currency>
243
- <currency type="GBP">
244
- <displayName>British Pound Sterling</displayName>
245
- </currency>
246
- <currency type="INR">
247
- <displayName>Indian Rupee</displayName>
248
- </currency>
249
- <currency type="JPY">
250
- <displayName>Japanese Yen</displayName>
251
- </currency>
252
- <currency type="RUB">
253
- <displayName>Russian Ruble</displayName>
254
- </currency>
255
- <currency type="USD">
256
- <displayName>US Dollar</displayName>
257
- </currency>
258
- </currencies>
259
</numbers>
260
</ldml>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.53 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
<language type="aa"/>
8
</identity>
9
<localeDisplayNames>
154
<dateFormats>
155
<dateFormatLength type="full">
156
<dateFormat>
157
+ <pattern>EEEE, MMMM dd, y</pattern>
158
</dateFormat>
159
</dateFormatLength>
160
<dateFormatLength type="long">
161
<dateFormat>
162
+ <pattern>dd MMMM y</pattern>
163
</dateFormat>
164
</dateFormatLength>
165
<dateFormatLength type="medium">
166
<dateFormat>
167
+ <pattern>dd-MMM-y</pattern>
168
</dateFormat>
169
</dateFormatLength>
170
<dateFormatLength type="short">
176
<timeFormats>
177
<timeFormatLength type="full">
178
<timeFormat>
179
+ <pattern>h:mm:ss a zzzz</pattern>
180
</timeFormat>
181
</timeFormatLength>
182
<timeFormatLength type="long">
196
</timeFormatLength>
197
</timeFormats>
198
<dateTimeFormats>
199
<availableFormats>
200
<dateFormatItem id="yyQ">Q yy</dateFormatItem>
201
</availableFormats>
216
</currencyFormat>
217
</currencyFormatLength>
218
</currencyFormats>
219
</numbers>
220
</ldml>
221
+
lib/Zend/Locale/Data/aa_DJ.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.38 quot;/>
6
- <generation date="$Date: 2008/05/28 15:49:27 quot;/>
7
<language type="aa"/>
8
<territory type="DJ"/>
9
</identity>
@@ -22,14 +22,5 @@
22
</calendar>
23
</calendars>
24
</dates>
25
- <numbers>
26
- <currencies>
27
- <currency type="ERN">
28
- <symbol>lt;/symbol>
29
- </currency>
30
- <currency type="ETB">
31
- <symbol>ETB</symbol>
32
- </currency>
33
- </currencies>
34
- </numbers>
35
</ldml>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.41 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
<language type="aa"/>
8
<territory type="DJ"/>
9
</identity>
22
</calendar>
23
</calendars>
24
</dates>
25
</ldml>
26
+
lib/Zend/Locale/Data/aa_ER.xml CHANGED
@@ -1,20 +1,11 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.37 quot;/>
6
- <generation date="$Date: 2008/05/28 15:49:27 quot;/>
7
<language type="aa"/>
8
<territory type="ER"/>
9
</identity>
10
- <numbers>
11
- <currencies>
12
- <currency type="ERN">
13
- <symbol>lt;/symbol>
14
- </currency>
15
- <currency type="ETB">
16
- <symbol>ETB</symbol>
17
- </currency>
18
- </currencies>
19
- </numbers>
20
</ldml>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.40 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
<language type="aa"/>
8
<territory type="ER"/>
9
</identity>
10
</ldml>
11
+
lib/Zend/Locale/Data/aa_ER_SAAHO.xml ADDED
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
+ <ldml>
4
+ <identity>
5
+ <version number="$Revision: 1.36 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
+ <language type="aa"/>
8
+ <territory type="ER"/>
9
+ <variant type="SAAHO"/>
10
+ </identity>
11
+ <dates>
12
+ <calendars>
13
+ <calendar type="gregorian">
14
+ <days>
15
+ <dayContext type="format">
16
+ <dayWidth type="abbreviated">
17
+ <day type="sun">Nab</day>
18
+ <day type="mon">San</day>
19
+ <day type="tue">Sal</day>
20
+ <day type="wed">Rab</day>
21
+ <day type="thu">Cam</day>
22
+ <day type="fri">Jum</day>
23
+ <day type="sat">Qun</day>
24
+ </dayWidth>
25
+ <dayWidth type="wide">
26
+ <day type="sun">Naba Sambat</day>
27
+ <day type="mon">Sani</day>
28
+ <day type="tue">Salus</day>
29
+ <day type="wed">Rabuq</day>
30
+ <day type="thu">Camus</day>
31
+ <day type="fri">Jumqata</day>
32
+ <day type="sat">Qunxa Sambat</day>
33
+ </dayWidth>
34
+ </dayContext>
35
+ </days>
36
+ </calendar>
37
+ </calendars>
38
+ </dates>
39
+ </ldml>
lib/Zend/Locale/Data/aa_ET.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.38 quot;/>
6
- <generation date="$Date: 2008/05/28 15:49:27 quot;/>
7
<language type="aa"/>
8
<territory type="ET"/>
9
</identity>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.40 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
<language type="aa"/>
8
<territory type="ET"/>
9
</identity>
lib/Zend/Locale/Data/af.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.65 quot;/>
6
- <generation date="$Date: 2008/06/17 14:12:13 quot;/>
7
<language type="af"/>
8
</identity>
9
<localeDisplayNames>
@@ -427,7 +427,7 @@
427
</codePatterns>
428
</localeDisplayNames>
429
<characters>
430
- <exemplarCharacters>[a á â b-e é è ê ë f-i î ï j-o ô ö p-u û v-z ʼn]</exemplarCharacters>
431
<exemplarCharacters type="auxiliary">[à å-ç ñ ø œ ß]</exemplarCharacters>
432
<exemplarCharacters type="currencySymbol">[a-z]</exemplarCharacters>
433
</characters>
@@ -552,17 +552,17 @@
552
<dateFormats>
553
<dateFormatLength type="full">
554
<dateFormat>
555
- <pattern>EEEE dd MMMM yyyy</pattern>
556
</dateFormat>
557
</dateFormatLength>
558
<dateFormatLength type="long">
559
<dateFormat>
560
- <pattern>dd MMMM yyyy</pattern>
561
</dateFormat>
562
</dateFormatLength>
563
<dateFormatLength type="medium">
564
<dateFormat>
565
- <pattern>dd MMM yyyy</pattern>
566
</dateFormat>
567
</dateFormatLength>
568
<dateFormatLength type="short">
@@ -574,7 +574,7 @@
574
<timeFormats>
575
<timeFormatLength type="full">
576
<timeFormat>
577
- <pattern>h:mm:ss a v</pattern>
578
</timeFormat>
579
</timeFormatLength>
580
<timeFormatLength type="long">
@@ -594,18 +594,13 @@
594
</timeFormatLength>
595
</timeFormats>
596
<dateTimeFormats>
597
- <dateTimeFormatLength>
598
- <dateTimeFormat>
599
- <pattern>{1} {0}</pattern>
600
- </dateTimeFormat>
601
- </dateTimeFormatLength>
602
<availableFormats>
603
<dateFormatItem id="MMMMd">d MMMM</dateFormatItem>
604
<dateFormatItem id="MMMMdd">dd MMMM</dateFormatItem>
605
<dateFormatItem id="MMdd">MM/dd</dateFormatItem>
606
<dateFormatItem id="yyQ">Q yy</dateFormatItem>
607
<dateFormatItem id="yyyyMM">yyyy/MM</dateFormatItem>
608
- <dateFormatItem id="yyyyMMMM">MMMM yyyy</dateFormatItem>
609
</availableFormats>
610
<intervalFormats>
611
<intervalFormatFallback>{0} - {1}</intervalFormatFallback>
@@ -661,18 +656,18 @@
661
<greatestDifference id="y">E, yyyy-MM-dd - E, yyyy-MM-dd</greatestDifference>
662
</intervalFormatItem>
663
<intervalFormatItem id="yMMM">
664
- <greatestDifference id="M">yyyy MMM-MMM</greatestDifference>
665
- <greatestDifference id="y">yyyy MMM - yyyy MMM</greatestDifference>
666
</intervalFormatItem>
667
<intervalFormatItem id="yMMMEd">
668
- <greatestDifference id="M">E, yyyy MMM dd - E, yyyy MMM dd</greatestDifference>
669
- <greatestDifference id="d">E, yyyy MMM dd - E, yyyy MMM dd</greatestDifference>
670
- <greatestDifference id="y">E, yyyy MMM dd - E, yyyy MMM dd</greatestDifference>
671
</intervalFormatItem>
672
<intervalFormatItem id="yMMMd">
673
- <greatestDifference id="M">yyyy MMM d - MMM d</greatestDifference>
674
- <greatestDifference id="d">yyyy MMM d-d</greatestDifference>
675
- <greatestDifference id="y">yyyy MMM d - yyyy MMM d</greatestDifference>
676
</intervalFormatItem>
677
<intervalFormatItem id="yMd">
678
<greatestDifference id="M">yyyy-MM-dd - yyyy-MM-dd</greatestDifference>
@@ -814,7 +809,6 @@
814
</currency>
815
<currency type="ZAR">
816
<displayName>Rand</displayName>
817
- <symbol>R</symbol>
818
</currency>
819
</currencies>
820
</numbers>
@@ -825,3 +819,4 @@
825
</messages>
826
</posix>
827
</ldml>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.77 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
<language type="af"/>
8
</identity>
9
<localeDisplayNames>
427
</codePatterns>
428
</localeDisplayNames>
429
<characters>
430
+ <exemplarCharacters>[a á â b-e é è ê ë f-i î ï j-o ô ö p-u û v-z]</exemplarCharacters>
431
<exemplarCharacters type="auxiliary">[à å-ç ñ ø œ ß]</exemplarCharacters>
432
<exemplarCharacters type="currencySymbol">[a-z]</exemplarCharacters>
433
</characters>
552
<dateFormats>
553
<dateFormatLength type="full">
554
<dateFormat>
555
+ <pattern>EEEE dd MMMM y</pattern>
556
</dateFormat>
557
</dateFormatLength>
558
<dateFormatLength type="long">
559
<dateFormat>
560
+ <pattern>dd MMMM y</pattern>
561
</dateFormat>
562
</dateFormatLength>
563
<dateFormatLength type="medium">
564
<dateFormat>
565
+ <pattern>dd MMM y</pattern>
566
</dateFormat>
567
</dateFormatLength>
568
<dateFormatLength type="short">
574
<timeFormats>
575
<timeFormatLength type="full">
576
<timeFormat>
577
+ <pattern>h:mm:ss a zzzz</pattern>
578
</timeFormat>
579
</timeFormatLength>
580
<timeFormatLength type="long">
594
</timeFormatLength>
595
</timeFormats>
596
<dateTimeFormats>
597
<availableFormats>
598
<dateFormatItem id="MMMMd">d MMMM</dateFormatItem>
599
<dateFormatItem id="MMMMdd">dd MMMM</dateFormatItem>
600
<dateFormatItem id="MMdd">MM/dd</dateFormatItem>
601
<dateFormatItem id="yyQ">Q yy</dateFormatItem>
602
<dateFormatItem id="yyyyMM">yyyy/MM</dateFormatItem>
603
+ <dateFormatItem id="yyyyMMMM">MMMM y</dateFormatItem>
604
</availableFormats>
605
<intervalFormats>
606
<intervalFormatFallback>{0} - {1}</intervalFormatFallback>
656
<greatestDifference id="y">E, yyyy-MM-dd - E, yyyy-MM-dd</greatestDifference>
657
</intervalFormatItem>
658
<intervalFormatItem id="yMMM">
659
+ <greatestDifference id="M">y MMM-MMM</greatestDifference>
660
+ <greatestDifference id="y">y MMM - y MMM</greatestDifference>
661
</intervalFormatItem>
662
<intervalFormatItem id="yMMMEd">
663
+ <greatestDifference id="M">E, y MMM dd - E, y MMM dd</greatestDifference>
664
+ <greatestDifference id="d">E, y MMM dd - E, y MMM dd</greatestDifference>
665
+ <greatestDifference id="y">E, y MMM dd - E, y MMM dd</greatestDifference>
666
</intervalFormatItem>
667
<intervalFormatItem id="yMMMd">
668
+ <greatestDifference id="M">y MMM d - MMM d</greatestDifference>
669
+ <greatestDifference id="d">y MMM d-d</greatestDifference>
670
+ <greatestDifference id="y">y MMM d - y MMM d</greatestDifference>
671
</intervalFormatItem>
672
<intervalFormatItem id="yMd">
673
<greatestDifference id="M">yyyy-MM-dd - yyyy-MM-dd</greatestDifference>
809
</currency>
810
<currency type="ZAR">
811
<displayName>Rand</displayName>
812
</currency>
813
</currencies>
814
</numbers>
819
</messages>
820
</posix>
821
</ldml>
822
+
lib/Zend/Locale/Data/af_NA.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.19 quot;/>
6
- <generation date="$Date: 2008/06/15 08:09:45 quot;/>
7
<language type="af"/>
8
<territory type="NA"/>
9
</identity>
@@ -13,17 +13,17 @@
13
<dateFormats>
14
<dateFormatLength type="full">
15
<dateFormat>
16
- <pattern>EEEE d MMMM yyyy</pattern>
17
</dateFormat>
18
</dateFormatLength>
19
<dateFormatLength type="long">
20
<dateFormat>
21
- <pattern>d MMMM yyyy</pattern>
22
</dateFormat>
23
</dateFormatLength>
24
<dateFormatLength type="medium">
25
<dateFormat>
26
- <pattern>d MMM yyyy</pattern>
27
</dateFormat>
28
</dateFormatLength>
29
<dateFormatLength type="short">
@@ -35,7 +35,7 @@
35
<timeFormats>
36
<timeFormatLength type="full">
37
<timeFormat>
38
- <pattern>HH:mm:ss v</pattern>
39
</timeFormat>
40
</timeFormatLength>
41
<timeFormatLength type="long">
@@ -73,4 +73,3 @@
73
</currencyFormats>
74
</numbers>
75
</ldml>
76
-
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.23 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
<language type="af"/>
8
<territory type="NA"/>
9
</identity>
13
<dateFormats>
14
<dateFormatLength type="full">
15
<dateFormat>
16
+ <pattern>EEEE d MMMM y</pattern>
17
</dateFormat>
18
</dateFormatLength>
19
<dateFormatLength type="long">
20
<dateFormat>
21
+ <pattern>d MMMM y</pattern>
22
</dateFormat>
23
</dateFormatLength>
24
<dateFormatLength type="medium">
25
<dateFormat>
26
+ <pattern>d MMM y</pattern>
27
</dateFormat>
28
</dateFormatLength>
29
<dateFormatLength type="short">
35
<timeFormats>
36
<timeFormatLength type="full">
37
<timeFormat>
38
+ <pattern>HH:mm:ss zzzz</pattern>
39
</timeFormat>
40
</timeFormatLength>
41
<timeFormatLength type="long">
73
</currencyFormats>
74
</numbers>
75
</ldml>
lib/Zend/Locale/Data/af_ZA.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.48 quot;/>
6
- <generation date="$Date: 2008/05/28 15:49:27 quot;/>
7
<language type="af"/>
8
<territory type="ZA"/>
9
</identity>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.50 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
<language type="af"/>
8
<territory type="ZA"/>
9
</identity>
lib/Zend/Locale/Data/ak.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.28 quot;/>
6
- <generation date="$Date: 2008/05/28 15:49:27 quot;/>
7
<language type="ak"/>
8
</identity>
9
<characters>
@@ -125,17 +125,17 @@
125
<dateFormats>
126
<dateFormatLength type="full">
127
<dateFormat>
128
- <pattern>EEEE, yyyy MMMM dd</pattern>
129
</dateFormat>
130
</dateFormatLength>
131
<dateFormatLength type="long">
132
<dateFormat>
133
- <pattern>yyyy MMMM d</pattern>
134
</dateFormat>
135
</dateFormatLength>
136
<dateFormatLength type="medium">
137
<dateFormat>
138
- <pattern>yyyy MMM d</pattern>
139
</dateFormat>
140
</dateFormatLength>
141
<dateFormatLength type="short">
@@ -147,7 +147,7 @@
147
<timeFormats>
148
<timeFormatLength type="full">
149
<timeFormat>
150
- <pattern>HH:mm:ss v</pattern>
151
</timeFormat>
152
</timeFormatLength>
153
<timeFormatLength type="long">
@@ -167,11 +167,6 @@
167
</timeFormatLength>
168
</timeFormats>
169
<dateTimeFormats>
170
- <dateTimeFormatLength>
171
- <dateTimeFormat>
172
- <pattern>{1} {0}</pattern>
173
- </dateTimeFormat>
174
- </dateTimeFormatLength>
175
<availableFormats>
176
<dateFormatItem id="yyQ">Q yy</dateFormatItem>
177
</availableFormats>
@@ -188,8 +183,8 @@
188
<currencies>
189
<currency type="GHC">
190
<displayName>Sidi</displayName>
191
- <symbol>GH¢</symbol>
192
</currency>
193
</currencies>
194
</numbers>
195
</ldml>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.37 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:33 quot;/>
7
<language type="ak"/>
8
</identity>
9
<characters>
125
<dateFormats>
126
<dateFormatLength type="full">
127
<dateFormat>
128
+ <pattern>EEEE, y MMMM dd</pattern>
129
</dateFormat>
130
</dateFormatLength>
131
<dateFormatLength type="long">
132
<dateFormat>
133
+ <pattern>y MMMM d</pattern>
134
</dateFormat>
135
</dateFormatLength>
136
<dateFormatLength type="medium">
137
<dateFormat>
138
+ <pattern>y MMM d</pattern>
139
</dateFormat>
140
</dateFormatLength>
141
<dateFormatLength type="short">
147
<timeFormats>
148
<timeFormatLength type="full">
149
<timeFormat>
150
+ <pattern>HH:mm:ss zzzz</pattern>
151
</timeFormat>
152
</timeFormatLength>
153
<timeFormatLength type="long">
167
</timeFormatLength>
168
</timeFormats>
169
<dateTimeFormats>
170
<availableFormats>
171
<dateFormatItem id="yyQ">Q yy</dateFormatItem>
172
</availableFormats>
183
<currencies>
184
<currency type="GHC">
185
<displayName>Sidi</displayName>
186
</currency>
187
</currencies>
188
</numbers>
189
</ldml>
190
+
lib/Zend/Locale/Data/ak_GH.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.16 quot;/>
6
- <generation date="$Date: 2008/05/28 15:49:27 quot;/>
7
<language type="ak"/>
8
<territory type="GH"/>
9
</identity>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
3
<ldml>
4
<identity>
5
+ <version number="$Revision: 1.18 quot;/>
6
+ <generation date="$Date: 2009/05/05 23:06:34 quot;/>
7
<language type="ak"/>
8
<territory type="GH"/>
9
</identity>
lib/Zend/Locale/Data/am.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE ldml SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldml.dtd">
3
<ldml>
4
<identity>
5
- <version number="$Revision: 1.77 quot;/>
6
- <generation date="$Date: 2008/06/26 03:47:57 quot;/>
7
<language type="am"/>
8
</identity>
9
<localeDisplayNames>
@@ -514,7 +514,7 @@
514
</measurementSystemNames>
515
</localeDisplayNames>
516
<characters>
517
- <exemplarCharacters>[፟ ሀ-ሆ ለ-ቆ ቈ ቊ-ቍ በ-ኆ ኈ ኊ-ኍ ነ-ኮ ኰ ኲ-ኵ ኸ-ኾ ወ-ዎ ዐ-ዖ ዘ-ዷ ጀ-ጎ ጐ ጒ-ጕ ጠ-ፚ]</exemplarCharacters>
518
<exemplarCharacters type="auxiliary">[᎐-᎙ ሇ ⶀ ᎀ-ᎃ ⶁ-ⶄ ቇ ቐ-ቖ ቘ ቚ-ቝ ᎄ-ᎇ ⶅ-ⶇ ኇ ⶈ-ⶊ ኯ ዀ ዂ-ዅ ዏ ⶋ ⶌ ዸ-ዿ ⶍ ⶎ ጏ ጘ-ጟ ⶓ-ⶖ ⶏ-ⶑ ᎈ-ᎏ ⶒ ⶠ-ⶦ ⶨ-ⶮ ⶰ-ⶶ ⶸ-ⶾ ⷀ-ⷆ ⷈ-ⷎ ⷐ-ⷖ ⷘ-ⷞ]</exemplarCharacters>
519
</characters>
520
<delimiters>
@@ -678,17 +678,17 @@
678
<dateFormats>
679
<dateFormatLength type="full">
680
<dateFormat>
681
- <pattern>EEEE፣ dd MMMM ቀን yyyy G</pattern>
682
</dateFormat>
683