cldr 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/VERSION +1 -1
- data/lib/cldr/generator.rb +89 -2
- data/lib/cldr/object.rb +4 -3
- data/lib/cldr/resource.rb +12 -0
- data/lib/cldr/resource/aa/supplemental.rb +35 -0
- data/lib/cldr/resource/aa_DJ/supplemental.rb +35 -0
- data/lib/cldr/resource/aa_ER/supplemental.rb +35 -0
- data/lib/cldr/resource/aa_ET/supplemental.rb +35 -0
- data/lib/cldr/resource/af/supplemental.rb +35 -0
- data/lib/cldr/resource/af_NA/supplemental.rb +35 -0
- data/lib/cldr/resource/af_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/agq/supplemental.rb +35 -0
- data/lib/cldr/resource/agq_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/ak/supplemental.rb +35 -0
- data/lib/cldr/resource/ak_GH/supplemental.rb +35 -0
- data/lib/cldr/resource/am/supplemental.rb +35 -0
- data/lib/cldr/resource/am_ET/supplemental.rb +35 -0
- data/lib/cldr/resource/ar/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_AE/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_BH/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_DZ/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_EG/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_IQ/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_JO/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_KW/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_LB/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_LY/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_MA/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_OM/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_QA/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_SA/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_SD/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_SY/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_TN/supplemental.rb +35 -0
- data/lib/cldr/resource/ar_YE/supplemental.rb +35 -0
- data/lib/cldr/resource/as/supplemental.rb +35 -0
- data/lib/cldr/resource/as_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/asa/supplemental.rb +35 -0
- data/lib/cldr/resource/asa_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/az/supplemental.rb +35 -0
- data/lib/cldr/resource/az_AZ_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/az_AZ_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/az_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/az_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/bas/supplemental.rb +35 -0
- data/lib/cldr/resource/bas_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/be/supplemental.rb +35 -0
- data/lib/cldr/resource/be_BY/supplemental.rb +35 -0
- data/lib/cldr/resource/bem/supplemental.rb +35 -0
- data/lib/cldr/resource/bem_ZM/supplemental.rb +35 -0
- data/lib/cldr/resource/bez/supplemental.rb +35 -0
- data/lib/cldr/resource/bez_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/bg/supplemental.rb +35 -0
- data/lib/cldr/resource/bg_BG/supplemental.rb +35 -0
- data/lib/cldr/resource/bm/supplemental.rb +35 -0
- data/lib/cldr/resource/bm_ML/supplemental.rb +35 -0
- data/lib/cldr/resource/bn/supplemental.rb +35 -0
- data/lib/cldr/resource/bn_BD/supplemental.rb +35 -0
- data/lib/cldr/resource/bn_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/bo/supplemental.rb +35 -0
- data/lib/cldr/resource/bo_CN/supplemental.rb +35 -0
- data/lib/cldr/resource/bo_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/br/supplemental.rb +35 -0
- data/lib/cldr/resource/br_FR/supplemental.rb +35 -0
- data/lib/cldr/resource/brx/supplemental.rb +35 -0
- data/lib/cldr/resource/brx_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/bs/supplemental.rb +35 -0
- data/lib/cldr/resource/bs_BA/supplemental.rb +35 -0
- data/lib/cldr/resource/byn/supplemental.rb +35 -0
- data/lib/cldr/resource/byn_ER/supplemental.rb +35 -0
- data/lib/cldr/resource/ca/supplemental.rb +35 -0
- data/lib/cldr/resource/ca_ES/supplemental.rb +35 -0
- data/lib/cldr/resource/cch/supplemental.rb +35 -0
- data/lib/cldr/resource/cch_NG/supplemental.rb +35 -0
- data/lib/cldr/resource/cgg/supplemental.rb +35 -0
- data/lib/cldr/resource/cgg_UG/supplemental.rb +35 -0
- data/lib/cldr/resource/chr/supplemental.rb +35 -0
- data/lib/cldr/resource/chr_US/supplemental.rb +35 -0
- data/lib/cldr/resource/cs/supplemental.rb +35 -0
- data/lib/cldr/resource/cs_CZ/supplemental.rb +35 -0
- data/lib/cldr/resource/cy/supplemental.rb +35 -0
- data/lib/cldr/resource/cy_GB/supplemental.rb +35 -0
- data/lib/cldr/resource/da/supplemental.rb +35 -0
- data/lib/cldr/resource/da_DK/supplemental.rb +35 -0
- data/lib/cldr/resource/dav/supplemental.rb +35 -0
- data/lib/cldr/resource/dav_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/de/supplemental.rb +35 -0
- data/lib/cldr/resource/de_AT/supplemental.rb +35 -0
- data/lib/cldr/resource/de_BE/supplemental.rb +35 -0
- data/lib/cldr/resource/de_CH/supplemental.rb +35 -0
- data/lib/cldr/resource/de_DE/supplemental.rb +35 -0
- data/lib/cldr/resource/de_LI/supplemental.rb +35 -0
- data/lib/cldr/resource/de_LU/supplemental.rb +35 -0
- data/lib/cldr/resource/dje/supplemental.rb +35 -0
- data/lib/cldr/resource/dje_NE/supplemental.rb +35 -0
- data/lib/cldr/resource/dua/supplemental.rb +35 -0
- data/lib/cldr/resource/dua_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/dyo/supplemental.rb +35 -0
- data/lib/cldr/resource/dyo_SN/supplemental.rb +35 -0
- data/lib/cldr/resource/dz/supplemental.rb +35 -0
- data/lib/cldr/resource/dz_BT/supplemental.rb +35 -0
- data/lib/cldr/resource/ebu/supplemental.rb +35 -0
- data/lib/cldr/resource/ebu_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/ee/supplemental.rb +35 -0
- data/lib/cldr/resource/ee_GH/supplemental.rb +35 -0
- data/lib/cldr/resource/ee_TG/supplemental.rb +35 -0
- data/lib/cldr/resource/el/supplemental.rb +35 -0
- data/lib/cldr/resource/el_CY/supplemental.rb +35 -0
- data/lib/cldr/resource/el_GR/supplemental.rb +35 -0
- data/lib/cldr/resource/en/supplemental.rb +35 -0
- data/lib/cldr/resource/en_AS/supplemental.rb +35 -0
- data/lib/cldr/resource/en_AU/supplemental.rb +35 -0
- data/lib/cldr/resource/en_BB/supplemental.rb +35 -0
- data/lib/cldr/resource/en_BE/supplemental.rb +35 -0
- data/lib/cldr/resource/en_BM/supplemental.rb +35 -0
- data/lib/cldr/resource/en_BW/supplemental.rb +35 -0
- data/lib/cldr/resource/en_BZ/supplemental.rb +35 -0
- data/lib/cldr/resource/en_CA/supplemental.rb +35 -0
- data/lib/cldr/resource/en_Dsrt/supplemental.rb +35 -0
- data/lib/cldr/resource/en_GB/supplemental.rb +35 -0
- data/lib/cldr/resource/en_GU/supplemental.rb +35 -0
- data/lib/cldr/resource/en_GY/supplemental.rb +35 -0
- data/lib/cldr/resource/en_HK/supplemental.rb +35 -0
- data/lib/cldr/resource/en_IE/supplemental.rb +35 -0
- data/lib/cldr/resource/en_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/en_JM/supplemental.rb +35 -0
- data/lib/cldr/resource/en_MH/supplemental.rb +35 -0
- data/lib/cldr/resource/en_MP/supplemental.rb +35 -0
- data/lib/cldr/resource/en_MT/supplemental.rb +35 -0
- data/lib/cldr/resource/en_MU/supplemental.rb +35 -0
- data/lib/cldr/resource/en_NA/supplemental.rb +35 -0
- data/lib/cldr/resource/en_NZ/supplemental.rb +35 -0
- data/lib/cldr/resource/en_PH/supplemental.rb +35 -0
- data/lib/cldr/resource/en_PK/supplemental.rb +35 -0
- data/lib/cldr/resource/en_SG/supplemental.rb +35 -0
- data/lib/cldr/resource/en_Shaw/supplemental.rb +35 -0
- data/lib/cldr/resource/en_TT/supplemental.rb +35 -0
- data/lib/cldr/resource/en_UM/supplemental.rb +35 -0
- data/lib/cldr/resource/en_US/supplemental.rb +35 -0
- data/lib/cldr/resource/en_US_Dsrt/supplemental.rb +35 -0
- data/lib/cldr/resource/en_VI/supplemental.rb +35 -0
- data/lib/cldr/resource/en_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/en_ZW/supplemental.rb +35 -0
- data/lib/cldr/resource/eo/supplemental.rb +35 -0
- data/lib/cldr/resource/es/supplemental.rb +35 -0
- data/lib/cldr/resource/es_419/supplemental.rb +35 -0
- data/lib/cldr/resource/es_AR/supplemental.rb +35 -0
- data/lib/cldr/resource/es_BO/supplemental.rb +35 -0
- data/lib/cldr/resource/es_CL/supplemental.rb +35 -0
- data/lib/cldr/resource/es_CO/supplemental.rb +35 -0
- data/lib/cldr/resource/es_CR/supplemental.rb +35 -0
- data/lib/cldr/resource/es_DO/supplemental.rb +35 -0
- data/lib/cldr/resource/es_EC/supplemental.rb +35 -0
- data/lib/cldr/resource/es_ES/supplemental.rb +35 -0
- data/lib/cldr/resource/es_GQ/supplemental.rb +35 -0
- data/lib/cldr/resource/es_GT/supplemental.rb +35 -0
- data/lib/cldr/resource/es_HN/supplemental.rb +35 -0
- data/lib/cldr/resource/es_MX/supplemental.rb +35 -0
- data/lib/cldr/resource/es_NI/supplemental.rb +35 -0
- data/lib/cldr/resource/es_PA/supplemental.rb +35 -0
- data/lib/cldr/resource/es_PE/supplemental.rb +35 -0
- data/lib/cldr/resource/es_PR/supplemental.rb +35 -0
- data/lib/cldr/resource/es_PY/supplemental.rb +35 -0
- data/lib/cldr/resource/es_SV/supplemental.rb +35 -0
- data/lib/cldr/resource/es_US/supplemental.rb +35 -0
- data/lib/cldr/resource/es_UY/supplemental.rb +35 -0
- data/lib/cldr/resource/es_VE/supplemental.rb +35 -0
- data/lib/cldr/resource/et/supplemental.rb +35 -0
- data/lib/cldr/resource/et_EE/supplemental.rb +35 -0
- data/lib/cldr/resource/eu/supplemental.rb +35 -0
- data/lib/cldr/resource/eu_ES/supplemental.rb +35 -0
- data/lib/cldr/resource/ewo/supplemental.rb +35 -0
- data/lib/cldr/resource/ewo_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/fa/supplemental.rb +35 -0
- data/lib/cldr/resource/fa_AF/supplemental.rb +35 -0
- data/lib/cldr/resource/fa_IR/supplemental.rb +35 -0
- data/lib/cldr/resource/ff/supplemental.rb +35 -0
- data/lib/cldr/resource/ff_SN/supplemental.rb +35 -0
- data/lib/cldr/resource/fi/supplemental.rb +35 -0
- data/lib/cldr/resource/fi_FI/supplemental.rb +35 -0
- data/lib/cldr/resource/fil/supplemental.rb +35 -0
- data/lib/cldr/resource/fil_PH/supplemental.rb +35 -0
- data/lib/cldr/resource/fo/supplemental.rb +35 -0
- data/lib/cldr/resource/fo_FO/supplemental.rb +35 -0
- data/lib/cldr/resource/fr/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_BE/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_BF/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_BI/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_BJ/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_BL/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_CA/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_CD/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_CF/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_CG/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_CH/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_CI/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_DJ/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_FR/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_GA/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_GF/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_GN/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_GP/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_GQ/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_KM/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_LU/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_MC/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_MF/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_MG/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_ML/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_MQ/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_NE/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_RE/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_RW/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_SN/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_TD/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_TG/supplemental.rb +35 -0
- data/lib/cldr/resource/fr_YT/supplemental.rb +35 -0
- data/lib/cldr/resource/fur/supplemental.rb +35 -0
- data/lib/cldr/resource/fur_IT/supplemental.rb +35 -0
- data/lib/cldr/resource/ga/supplemental.rb +35 -0
- data/lib/cldr/resource/ga_IE/supplemental.rb +35 -0
- data/lib/cldr/resource/gaa/supplemental.rb +35 -0
- data/lib/cldr/resource/gaa_GH/supplemental.rb +35 -0
- data/lib/cldr/resource/gl/supplemental.rb +35 -0
- data/lib/cldr/resource/gl_ES/supplemental.rb +35 -0
- data/lib/cldr/resource/gsw/supplemental.rb +35 -0
- data/lib/cldr/resource/gsw_CH/supplemental.rb +35 -0
- data/lib/cldr/resource/gu/supplemental.rb +35 -0
- data/lib/cldr/resource/gu_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/guz/supplemental.rb +35 -0
- data/lib/cldr/resource/guz_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/gv/supplemental.rb +35 -0
- data/lib/cldr/resource/gv_GB/supplemental.rb +35 -0
- data/lib/cldr/resource/ha/supplemental.rb +35 -0
- data/lib/cldr/resource/ha_GH_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/ha_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/ha_NE_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/ha_NG_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/haw/supplemental.rb +35 -0
- data/lib/cldr/resource/haw_US/supplemental.rb +35 -0
- data/lib/cldr/resource/he/supplemental.rb +35 -0
- data/lib/cldr/resource/he_IL/supplemental.rb +35 -0
- data/lib/cldr/resource/hi/supplemental.rb +35 -0
- data/lib/cldr/resource/hi_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/hr/supplemental.rb +35 -0
- data/lib/cldr/resource/hr_HR/supplemental.rb +35 -0
- data/lib/cldr/resource/hu/supplemental.rb +35 -0
- data/lib/cldr/resource/hu_HU/supplemental.rb +35 -0
- data/lib/cldr/resource/hy/supplemental.rb +35 -0
- data/lib/cldr/resource/hy_AM/supplemental.rb +35 -0
- data/lib/cldr/resource/ia/supplemental.rb +35 -0
- data/lib/cldr/resource/id/supplemental.rb +35 -0
- data/lib/cldr/resource/id_ID/supplemental.rb +35 -0
- data/lib/cldr/resource/ig/supplemental.rb +35 -0
- data/lib/cldr/resource/ig_NG/supplemental.rb +35 -0
- data/lib/cldr/resource/ii/supplemental.rb +35 -0
- data/lib/cldr/resource/ii_CN/supplemental.rb +35 -0
- data/lib/cldr/resource/is/supplemental.rb +35 -0
- data/lib/cldr/resource/is_IS/supplemental.rb +35 -0
- data/lib/cldr/resource/it/supplemental.rb +35 -0
- data/lib/cldr/resource/it_CH/calendar_preference.rb +25 -0
- data/lib/cldr/resource/it_CH/supplemental.rb +35 -0
- data/lib/cldr/resource/it_IT/supplemental.rb +35 -0
- data/lib/cldr/resource/ja/supplemental.rb +35 -0
- data/lib/cldr/resource/ja_JP/supplemental.rb +35 -0
- data/lib/cldr/resource/jmc/supplemental.rb +35 -0
- data/lib/cldr/resource/jmc_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/ka/supplemental.rb +35 -0
- data/lib/cldr/resource/ka_GE/supplemental.rb +35 -0
- data/lib/cldr/resource/kab/supplemental.rb +35 -0
- data/lib/cldr/resource/kab_DZ/supplemental.rb +35 -0
- data/lib/cldr/resource/kaj/supplemental.rb +35 -0
- data/lib/cldr/resource/kaj_NG/supplemental.rb +35 -0
- data/lib/cldr/resource/kam/supplemental.rb +35 -0
- data/lib/cldr/resource/kam_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/kcg/supplemental.rb +35 -0
- data/lib/cldr/resource/kcg_NG/supplemental.rb +35 -0
- data/lib/cldr/resource/kde/supplemental.rb +35 -0
- data/lib/cldr/resource/kde_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/kea/supplemental.rb +35 -0
- data/lib/cldr/resource/kea_CV/supplemental.rb +35 -0
- data/lib/cldr/resource/khq/supplemental.rb +35 -0
- data/lib/cldr/resource/khq_ML/supplemental.rb +35 -0
- data/lib/cldr/resource/ki/supplemental.rb +35 -0
- data/lib/cldr/resource/ki_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/kk/supplemental.rb +35 -0
- data/lib/cldr/resource/kk_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/kk_KZ_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/kl/supplemental.rb +35 -0
- data/lib/cldr/resource/kl_GL/supplemental.rb +35 -0
- data/lib/cldr/resource/kln/supplemental.rb +35 -0
- data/lib/cldr/resource/kln_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/km/supplemental.rb +35 -0
- data/lib/cldr/resource/km_KH/supplemental.rb +35 -0
- data/lib/cldr/resource/kn/supplemental.rb +35 -0
- data/lib/cldr/resource/kn_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/ko/supplemental.rb +35 -0
- data/lib/cldr/resource/ko_KR/supplemental.rb +35 -0
- data/lib/cldr/resource/kok/supplemental.rb +35 -0
- data/lib/cldr/resource/kok_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/ksb/supplemental.rb +35 -0
- data/lib/cldr/resource/ksb_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/ksf/supplemental.rb +35 -0
- data/lib/cldr/resource/ksf_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/ksh/supplemental.rb +35 -0
- data/lib/cldr/resource/ksh_DE/supplemental.rb +35 -0
- data/lib/cldr/resource/ku/supplemental.rb +35 -0
- data/lib/cldr/resource/ku_Arab/supplemental.rb +35 -0
- data/lib/cldr/resource/ku_IQ_Arab/supplemental.rb +35 -0
- data/lib/cldr/resource/ku_IR_Arab/supplemental.rb +35 -0
- data/lib/cldr/resource/ku_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/ku_SY_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/ku_TR_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/kw/supplemental.rb +35 -0
- data/lib/cldr/resource/kw_GB/supplemental.rb +35 -0
- data/lib/cldr/resource/ky/supplemental.rb +35 -0
- data/lib/cldr/resource/ky_KG/supplemental.rb +35 -0
- data/lib/cldr/resource/lag/supplemental.rb +35 -0
- data/lib/cldr/resource/lag_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/lg/supplemental.rb +35 -0
- data/lib/cldr/resource/lg_UG/supplemental.rb +35 -0
- data/lib/cldr/resource/ln/supplemental.rb +35 -0
- data/lib/cldr/resource/ln_CD/supplemental.rb +35 -0
- data/lib/cldr/resource/ln_CG/supplemental.rb +35 -0
- data/lib/cldr/resource/lo/supplemental.rb +35 -0
- data/lib/cldr/resource/lo_LA/supplemental.rb +35 -0
- data/lib/cldr/resource/lt/supplemental.rb +35 -0
- data/lib/cldr/resource/lt_LT/supplemental.rb +35 -0
- data/lib/cldr/resource/lu/supplemental.rb +35 -0
- data/lib/cldr/resource/lu_CD/supplemental.rb +35 -0
- data/lib/cldr/resource/luo/supplemental.rb +35 -0
- data/lib/cldr/resource/luo_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/luy/supplemental.rb +35 -0
- data/lib/cldr/resource/luy_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/lv/supplemental.rb +35 -0
- data/lib/cldr/resource/lv_LV/supplemental.rb +35 -0
- data/lib/cldr/resource/mas/supplemental.rb +35 -0
- data/lib/cldr/resource/mas_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/mas_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/mer/supplemental.rb +35 -0
- data/lib/cldr/resource/mer_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/mfe/supplemental.rb +35 -0
- data/lib/cldr/resource/mfe_MU/supplemental.rb +35 -0
- data/lib/cldr/resource/mg/supplemental.rb +35 -0
- data/lib/cldr/resource/mg_MG/supplemental.rb +35 -0
- data/lib/cldr/resource/mgh/supplemental.rb +35 -0
- data/lib/cldr/resource/mgh_MZ/supplemental.rb +35 -0
- data/lib/cldr/resource/mk/supplemental.rb +35 -0
- data/lib/cldr/resource/mk_MK/supplemental.rb +35 -0
- data/lib/cldr/resource/ml/supplemental.rb +35 -0
- data/lib/cldr/resource/ml_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/mn/supplemental.rb +35 -0
- data/lib/cldr/resource/mn_CN_Mong/supplemental.rb +35 -0
- data/lib/cldr/resource/mn_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/mn_MN_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/mn_Mong/supplemental.rb +35 -0
- data/lib/cldr/resource/mr/supplemental.rb +35 -0
- data/lib/cldr/resource/mr_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/ms/supplemental.rb +35 -0
- data/lib/cldr/resource/ms_BN/supplemental.rb +35 -0
- data/lib/cldr/resource/ms_MY/supplemental.rb +35 -0
- data/lib/cldr/resource/mt/supplemental.rb +35 -0
- data/lib/cldr/resource/mt_MT/supplemental.rb +35 -0
- data/lib/cldr/resource/mua/supplemental.rb +35 -0
- data/lib/cldr/resource/mua_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/my/supplemental.rb +35 -0
- data/lib/cldr/resource/my_MM/supplemental.rb +35 -0
- data/lib/cldr/resource/naq/supplemental.rb +35 -0
- data/lib/cldr/resource/naq_NA/supplemental.rb +35 -0
- data/lib/cldr/resource/nb/supplemental.rb +35 -0
- data/lib/cldr/resource/nb_NO/supplemental.rb +35 -0
- data/lib/cldr/resource/nd/supplemental.rb +35 -0
- data/lib/cldr/resource/nd_ZW/supplemental.rb +35 -0
- data/lib/cldr/resource/nds/supplemental.rb +35 -0
- data/lib/cldr/resource/nds_DE/supplemental.rb +35 -0
- data/lib/cldr/resource/ne/supplemental.rb +35 -0
- data/lib/cldr/resource/ne_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/ne_NP/supplemental.rb +35 -0
- data/lib/cldr/resource/nl/supplemental.rb +35 -0
- data/lib/cldr/resource/nl_AW/supplemental.rb +35 -0
- data/lib/cldr/resource/nl_BE/supplemental.rb +35 -0
- data/lib/cldr/resource/nl_NL/supplemental.rb +35 -0
- data/lib/cldr/resource/nmg/supplemental.rb +35 -0
- data/lib/cldr/resource/nmg_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/nn/supplemental.rb +35 -0
- data/lib/cldr/resource/nn_NO/supplemental.rb +35 -0
- data/lib/cldr/resource/nr/supplemental.rb +35 -0
- data/lib/cldr/resource/nr_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/nso/supplemental.rb +35 -0
- data/lib/cldr/resource/nso_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/nus/supplemental.rb +35 -0
- data/lib/cldr/resource/nus_SD/supplemental.rb +35 -0
- data/lib/cldr/resource/nyn/supplemental.rb +35 -0
- data/lib/cldr/resource/nyn_UG/supplemental.rb +35 -0
- data/lib/cldr/resource/oc/supplemental.rb +35 -0
- data/lib/cldr/resource/oc_FR/supplemental.rb +35 -0
- data/lib/cldr/resource/om/supplemental.rb +35 -0
- data/lib/cldr/resource/om_ET/supplemental.rb +35 -0
- data/lib/cldr/resource/om_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/or/supplemental.rb +35 -0
- data/lib/cldr/resource/or_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/pa/supplemental.rb +35 -0
- data/lib/cldr/resource/pa_Arab/supplemental.rb +35 -0
- data/lib/cldr/resource/pa_Guru/supplemental.rb +35 -0
- data/lib/cldr/resource/pa_IN_Guru/supplemental.rb +35 -0
- data/lib/cldr/resource/pa_PK_Arab/supplemental.rb +35 -0
- data/lib/cldr/resource/pl/supplemental.rb +35 -0
- data/lib/cldr/resource/pl_PL/supplemental.rb +35 -0
- data/lib/cldr/resource/ps/supplemental.rb +35 -0
- data/lib/cldr/resource/ps_AF/supplemental.rb +35 -0
- data/lib/cldr/resource/pt/supplemental.rb +35 -0
- data/lib/cldr/resource/pt_AO/supplemental.rb +35 -0
- data/lib/cldr/resource/pt_BR/supplemental.rb +35 -0
- data/lib/cldr/resource/pt_GW/supplemental.rb +35 -0
- data/lib/cldr/resource/pt_MZ/supplemental.rb +35 -0
- data/lib/cldr/resource/pt_PT/supplemental.rb +35 -0
- data/lib/cldr/resource/pt_ST/supplemental.rb +35 -0
- data/lib/cldr/resource/rm/supplemental.rb +35 -0
- data/lib/cldr/resource/rm_CH/supplemental.rb +35 -0
- data/lib/cldr/resource/rn/supplemental.rb +35 -0
- data/lib/cldr/resource/rn_BI/supplemental.rb +35 -0
- data/lib/cldr/resource/ro/supplemental.rb +35 -0
- data/lib/cldr/resource/ro_MD/supplemental.rb +35 -0
- data/lib/cldr/resource/ro_RO/supplemental.rb +35 -0
- data/lib/cldr/resource/rof/supplemental.rb +35 -0
- data/lib/cldr/resource/rof_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/root/calendar_preference.rb +25 -0
- data/lib/cldr/resource/root/supplemental.rb +0 -0
- data/lib/cldr/resource/ru/supplemental.rb +35 -0
- data/lib/cldr/resource/ru_MD/supplemental.rb +35 -0
- data/lib/cldr/resource/ru_RU/supplemental.rb +35 -0
- data/lib/cldr/resource/ru_UA/supplemental.rb +35 -0
- data/lib/cldr/resource/rw/supplemental.rb +35 -0
- data/lib/cldr/resource/rw_RW/supplemental.rb +35 -0
- data/lib/cldr/resource/rwk/supplemental.rb +35 -0
- data/lib/cldr/resource/rwk_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/sah/supplemental.rb +35 -0
- data/lib/cldr/resource/sah_RU/supplemental.rb +35 -0
- data/lib/cldr/resource/saq/supplemental.rb +35 -0
- data/lib/cldr/resource/saq_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/sbp/supplemental.rb +35 -0
- data/lib/cldr/resource/sbp_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/se/supplemental.rb +35 -0
- data/lib/cldr/resource/se_FI/supplemental.rb +35 -0
- data/lib/cldr/resource/se_NO/supplemental.rb +35 -0
- data/lib/cldr/resource/seh/supplemental.rb +35 -0
- data/lib/cldr/resource/seh_MZ/supplemental.rb +35 -0
- data/lib/cldr/resource/ses/supplemental.rb +35 -0
- data/lib/cldr/resource/ses_ML/supplemental.rb +35 -0
- data/lib/cldr/resource/sg/supplemental.rb +35 -0
- data/lib/cldr/resource/sg_CF/supplemental.rb +35 -0
- data/lib/cldr/resource/shi/supplemental.rb +35 -0
- data/lib/cldr/resource/shi_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/shi_MA_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/shi_MA_Tfng/supplemental.rb +35 -0
- data/lib/cldr/resource/shi_Tfng/supplemental.rb +35 -0
- data/lib/cldr/resource/si/supplemental.rb +35 -0
- data/lib/cldr/resource/si_LK/supplemental.rb +35 -0
- data/lib/cldr/resource/sid/supplemental.rb +35 -0
- data/lib/cldr/resource/sid_ET/supplemental.rb +35 -0
- data/lib/cldr/resource/sk/supplemental.rb +35 -0
- data/lib/cldr/resource/sk_SK/supplemental.rb +35 -0
- data/lib/cldr/resource/sl/supplemental.rb +35 -0
- data/lib/cldr/resource/sl_SI/supplemental.rb +35 -0
- data/lib/cldr/resource/sn/supplemental.rb +35 -0
- data/lib/cldr/resource/sn_ZW/supplemental.rb +35 -0
- data/lib/cldr/resource/so/supplemental.rb +35 -0
- data/lib/cldr/resource/so_DJ/supplemental.rb +35 -0
- data/lib/cldr/resource/so_ET/supplemental.rb +35 -0
- data/lib/cldr/resource/so_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/so_SO/supplemental.rb +35 -0
- data/lib/cldr/resource/sq/supplemental.rb +35 -0
- data/lib/cldr/resource/sq_AL/supplemental.rb +35 -0
- data/lib/cldr/resource/sr/supplemental.rb +35 -0
- data/lib/cldr/resource/sr_BA_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/sr_BA_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/sr_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/sr_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/sr_ME_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/sr_ME_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/sr_RS_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/sr_RS_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/ss/supplemental.rb +35 -0
- data/lib/cldr/resource/ss_SZ/supplemental.rb +35 -0
- data/lib/cldr/resource/ss_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/ssy/supplemental.rb +35 -0
- data/lib/cldr/resource/ssy_ER/supplemental.rb +35 -0
- data/lib/cldr/resource/st/supplemental.rb +35 -0
- data/lib/cldr/resource/st_LS/supplemental.rb +35 -0
- data/lib/cldr/resource/st_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/sv/supplemental.rb +35 -0
- data/lib/cldr/resource/sv_FI/supplemental.rb +35 -0
- data/lib/cldr/resource/sv_SE/supplemental.rb +35 -0
- data/lib/cldr/resource/sw/supplemental.rb +35 -0
- data/lib/cldr/resource/sw_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/sw_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/swc/supplemental.rb +35 -0
- data/lib/cldr/resource/swc_CD/supplemental.rb +35 -0
- data/lib/cldr/resource/ta/supplemental.rb +35 -0
- data/lib/cldr/resource/ta_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/ta_LK/supplemental.rb +35 -0
- data/lib/cldr/resource/te/supplemental.rb +35 -0
- data/lib/cldr/resource/te_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/teo/supplemental.rb +35 -0
- data/lib/cldr/resource/teo_KE/supplemental.rb +35 -0
- data/lib/cldr/resource/teo_UG/supplemental.rb +35 -0
- data/lib/cldr/resource/tg/supplemental.rb +35 -0
- data/lib/cldr/resource/tg_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/tg_TJ_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/th/supplemental.rb +35 -0
- data/lib/cldr/resource/th_TH/supplemental.rb +35 -0
- data/lib/cldr/resource/ti/supplemental.rb +35 -0
- data/lib/cldr/resource/ti_ER/supplemental.rb +35 -0
- data/lib/cldr/resource/ti_ET/supplemental.rb +35 -0
- data/lib/cldr/resource/tig/supplemental.rb +35 -0
- data/lib/cldr/resource/tig_ER/supplemental.rb +35 -0
- data/lib/cldr/resource/tn/supplemental.rb +35 -0
- data/lib/cldr/resource/tn_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/to/supplemental.rb +35 -0
- data/lib/cldr/resource/to_TO/supplemental.rb +35 -0
- data/lib/cldr/resource/tr/supplemental.rb +35 -0
- data/lib/cldr/resource/tr_TR/supplemental.rb +35 -0
- data/lib/cldr/resource/trv/supplemental.rb +35 -0
- data/lib/cldr/resource/trv_TW/supplemental.rb +35 -0
- data/lib/cldr/resource/ts/supplemental.rb +35 -0
- data/lib/cldr/resource/ts_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/twq/supplemental.rb +35 -0
- data/lib/cldr/resource/twq_NE/supplemental.rb +35 -0
- data/lib/cldr/resource/tzm/supplemental.rb +35 -0
- data/lib/cldr/resource/tzm_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/tzm_MA_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/uk/supplemental.rb +35 -0
- data/lib/cldr/resource/uk_UA/supplemental.rb +35 -0
- data/lib/cldr/resource/ur/supplemental.rb +35 -0
- data/lib/cldr/resource/ur_IN/supplemental.rb +35 -0
- data/lib/cldr/resource/ur_PK/supplemental.rb +35 -0
- data/lib/cldr/resource/uz/supplemental.rb +35 -0
- data/lib/cldr/resource/uz_AF_Arab/supplemental.rb +35 -0
- data/lib/cldr/resource/uz_Arab/supplemental.rb +35 -0
- data/lib/cldr/resource/uz_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/uz_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/uz_UZ_Cyrl/supplemental.rb +35 -0
- data/lib/cldr/resource/uz_UZ_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/vai/supplemental.rb +35 -0
- data/lib/cldr/resource/vai_LR_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/vai_LR_Vaii/supplemental.rb +35 -0
- data/lib/cldr/resource/vai_Latn/supplemental.rb +35 -0
- data/lib/cldr/resource/vai_Vaii/supplemental.rb +35 -0
- data/lib/cldr/resource/ve/supplemental.rb +35 -0
- data/lib/cldr/resource/ve_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/vi/supplemental.rb +35 -0
- data/lib/cldr/resource/vi_VN/supplemental.rb +35 -0
- data/lib/cldr/resource/vun/supplemental.rb +35 -0
- data/lib/cldr/resource/vun_TZ/supplemental.rb +35 -0
- data/lib/cldr/resource/wae/supplemental.rb +35 -0
- data/lib/cldr/resource/wae_CH/supplemental.rb +35 -0
- data/lib/cldr/resource/wal/supplemental.rb +35 -0
- data/lib/cldr/resource/wal_ET/supplemental.rb +35 -0
- data/lib/cldr/resource/xh/supplemental.rb +35 -0
- data/lib/cldr/resource/xh_ZA/supplemental.rb +35 -0
- data/lib/cldr/resource/xog/supplemental.rb +35 -0
- data/lib/cldr/resource/xog_UG/supplemental.rb +35 -0
- data/lib/cldr/resource/yav/supplemental.rb +35 -0
- data/lib/cldr/resource/yav_CM/supplemental.rb +35 -0
- data/lib/cldr/resource/yo/supplemental.rb +35 -0
- data/lib/cldr/resource/yo_NG/supplemental.rb +35 -0
- data/lib/cldr/resource/zh/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_CN_Hans/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_HK_Hans/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_HK_Hant/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_Hans/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_Hant/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_MO_Hans/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_MO_Hant/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_SG_Hans/supplemental.rb +35 -0
- data/lib/cldr/resource/zh_TW_Hant/supplemental.rb +35 -0
- data/lib/cldr/resource/zu/supplemental.rb +35 -0
- data/lib/cldr/resource/zu_ZA/supplemental.rb +35 -0
- metadata +578 -5
- data/cldr-0.1.5.gem +0 -0
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/lib/cldr/generator.rb
CHANGED
@@ -121,11 +121,13 @@ module CLDR
|
|
121
121
|
[:h_symbols, :parse, "numbers/currencies/currency", "symbol"],
|
122
122
|
]
|
123
123
|
]
|
124
|
+
SUPPLEMENTAL = [:calendar_preference, :h_week_data, :h_measurement_data]
|
124
125
|
TARGET_INFO.each do |textdomain, *infos|
|
125
126
|
infos.each do |var, meth, *path|
|
126
127
|
attr_accessor var
|
127
128
|
end
|
128
129
|
end
|
130
|
+
SUPPLEMENTAL.each{ |a| attr_accessor a }
|
129
131
|
|
130
132
|
def supplement_alias(root, xml_dir)
|
131
133
|
root.get_elements("//alias").each do |v|
|
@@ -157,6 +159,10 @@ module CLDR
|
|
157
159
|
end
|
158
160
|
end
|
159
161
|
|
162
|
+
def all_info
|
163
|
+
inf = TARGET_INFO + ([[:supplemental] + SUPPLEMENTAL.map{ |s| [s, nil, nil]}])
|
164
|
+
end
|
165
|
+
|
160
166
|
def initialize(xml_file = nil, out_dir = nil)
|
161
167
|
TARGET_INFO.each do |textdomain, *infos|
|
162
168
|
infos.each do |var, meth, *path|
|
@@ -217,7 +223,7 @@ module CLDR
|
|
217
223
|
end
|
218
224
|
|
219
225
|
def update(other)
|
220
|
-
|
226
|
+
all_info.each do |textdomain, *infos|
|
221
227
|
infos.each do |var, meth, path|
|
222
228
|
update_real(var, other)
|
223
229
|
end
|
@@ -292,7 +298,8 @@ module CLDR
|
|
292
298
|
|
293
299
|
def print
|
294
300
|
FileUtils.mkdir_p(File.join(@out_dir, @locale_name))
|
295
|
-
|
301
|
+
all_info.each do |textdomain, *infos|
|
302
|
+
next if textdomain == :supplemental && @locale_name == 'root'
|
296
303
|
out = File.open(File.join(@out_dir, @locale_name, "#{textdomain}.rb"), "w")
|
297
304
|
attrs = []
|
298
305
|
print_header(out)
|
@@ -314,15 +321,95 @@ module CLDR
|
|
314
321
|
|
315
322
|
module_function
|
316
323
|
def parse(localedata_table, root_path, out_path = "lib/cldr/resource/")
|
324
|
+
require 'ruby-debug'
|
325
|
+
#debugger
|
326
|
+
supplemental = parse_supplemental(root_path)
|
317
327
|
Dir.glob(File.join(root_path, "common/main/*.xml")).sort.each do |v|
|
318
328
|
puts v
|
319
329
|
locale = File.basename(v, ".xml")
|
320
330
|
localedata_table[locale] = LocaleData.new(v, out_path)
|
331
|
+
langary = locale.split(/_/)
|
332
|
+
if supplemental[langary.first.upcase]
|
333
|
+
supplemental[langary.first.upcase].each do |k, v|
|
334
|
+
localedata_table[locale].send("#{k}=", v)
|
335
|
+
end
|
336
|
+
end
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
def set_territory_values(supplemental, el, attribute, key, &proc)
|
341
|
+
hash_key = nil
|
342
|
+
if key.to_s =~ /h_(.+)/
|
343
|
+
hash_key = $1
|
344
|
+
end
|
345
|
+
territories = el.attributes["territories"].split(' ')
|
346
|
+
territories.each do |t|
|
347
|
+
supplemental[t] ||= {}
|
348
|
+
val = el.attributes[attribute]
|
349
|
+
val = proc.call(val) if proc
|
350
|
+
if hash_key
|
351
|
+
supplemental[t][key] ||= {}
|
352
|
+
supplemental[t][key]["#{key}|#{el.name}"] = val
|
353
|
+
else
|
354
|
+
supplemental[t][key] = {key.to_s => val}
|
355
|
+
end
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
def parse_supplemental(root_path)
|
360
|
+
supplemental = {}
|
361
|
+
xml_file = File.join(root_path, "common/supplemental/supplementalData.xml")
|
362
|
+
f = File.open(xml_file) do |f|
|
363
|
+
|
364
|
+
doc = REXML::Document.new(f)
|
365
|
+
|
366
|
+
|
367
|
+
doc.elements.each("supplementalData/calendarPreferenceData/calendarPreference") do |calendar_preference|
|
368
|
+
set_territory_values(supplemental, calendar_preference, 'ordering', :calendar_preference){ |val| val.split(' ').first }
|
369
|
+
end
|
370
|
+
doc.elements.each("supplementalData/weekData/*") do |el|
|
371
|
+
if el.name == 'minDays'
|
372
|
+
set_territory_values(supplemental, el, 'count', :h_week_data)
|
373
|
+
else
|
374
|
+
set_territory_values(supplemental, el, 'day', :h_week_data)
|
375
|
+
end
|
376
|
+
end
|
377
|
+
doc.elements.each("supplementalData/measurementData/*") do |measurement_data|
|
378
|
+
set_territory_values(supplemental, measurement_data, 'type', :h_measurement_data)
|
379
|
+
end
|
380
|
+
groups = {}
|
381
|
+
doc.elements.each("supplementalData/territoryContainment/group") do |group|
|
382
|
+
groups[group.attributes['type']] = group.attributes['contains'].split(' ')
|
383
|
+
end
|
384
|
+
expand_data = lambda do |group|
|
385
|
+
if group =~ /\d\d\d/
|
386
|
+
groups[group].map{ |g| expand_data.call(g) }
|
387
|
+
else
|
388
|
+
[group]
|
389
|
+
end
|
390
|
+
end
|
391
|
+
groups.keys.each do |k|
|
392
|
+
groups[k] = groups[k].map(&expand_data).flatten
|
393
|
+
end
|
394
|
+
supplemental.keys.each do |terr|
|
395
|
+
if terr =~ /\d\d\d/
|
396
|
+
val = supplemental.delete(terr)
|
397
|
+
groups[terr].each do |g|
|
398
|
+
supplemental[g] ||= {}
|
399
|
+
val.each do |k, v|
|
400
|
+
supplemental[g][k] ||= {}
|
401
|
+
supplemental[g][k].merge!(v)
|
402
|
+
end
|
403
|
+
end
|
404
|
+
end
|
405
|
+
end
|
406
|
+
supplemental
|
321
407
|
end
|
322
408
|
end
|
323
409
|
|
324
410
|
def analyze(localedata_table)
|
325
411
|
# Copy root/parent data to child
|
412
|
+
#debugger
|
326
413
|
localedata_table.to_a.sort{|a, b| a[0] <=> b[0]}.each do |k, v|
|
327
414
|
puts k
|
328
415
|
unless k == "root"
|
data/lib/cldr/object.rb
CHANGED
@@ -17,7 +17,7 @@ module CLDR
|
|
17
17
|
class Object
|
18
18
|
@@data_cache = {}
|
19
19
|
|
20
|
-
attr_reader :core, :calendar, :timezone, :number, :currency
|
20
|
+
attr_reader :core, :calendar, :timezone, :number, :currency, :supplemental
|
21
21
|
# Create a new CLDR::Object object. This object creates all of
|
22
22
|
# the instances of resource classes.
|
23
23
|
# * opts: options
|
@@ -35,9 +35,10 @@ module CLDR
|
|
35
35
|
@timezone = TimeZone.new(locale, fallback)
|
36
36
|
@number = Number.new(locale, fallback)
|
37
37
|
@currency = Currency.new(locale, fallback)
|
38
|
-
|
38
|
+
@supplemental = Supplemental.new(locale, fallback)
|
39
|
+
@@data_cache[locale] = [@core, @calendar, @timezone, @number, @currency, @supplemental]
|
39
40
|
else
|
40
|
-
@core, @calendar, @timezone, @number, @currency = data
|
41
|
+
@core, @calendar, @timezone, @number, @currency, @supplemental = data
|
41
42
|
end
|
42
43
|
end
|
43
44
|
end
|
data/lib/cldr/resource.rb
CHANGED
@@ -80,4 +80,16 @@ module CLDR
|
|
80
80
|
super(locale, fallback, "currency")
|
81
81
|
end
|
82
82
|
end
|
83
|
+
|
84
|
+
class Supplemental < Resource
|
85
|
+
# Create a new CLDR::Supplemental object
|
86
|
+
# * locale: the Locale::Object
|
87
|
+
# * fallback: the Locale::Object if the locale isn't found.
|
88
|
+
# This value should be existed locale.
|
89
|
+
# * Returns: a newly created Locale::Object
|
90
|
+
def initialize(locale, fallback)
|
91
|
+
super(locale, fallback, "supplemental")
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
83
95
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# a language data file for Ruby/CLDR
|
5
|
+
#
|
6
|
+
# Generated by: CLDR::Generator
|
7
|
+
#
|
8
|
+
# CLDR version:
|
9
|
+
#
|
10
|
+
# Original file name: common/main/aa.xml
|
11
|
+
# Original file revision: 5798 $
|
12
|
+
#
|
13
|
+
# Copyright (C) 2006 Masao Mutoh
|
14
|
+
#
|
15
|
+
# This file is distributed under the same license as the Ruby/CLDR.
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
private
|
20
|
+
def init_data
|
21
|
+
@calendar_preference = "gregorian"
|
22
|
+
@week_data = {}
|
23
|
+
@week_data["firstDay"] = "mon"
|
24
|
+
@week_data["minDays"] = "1"
|
25
|
+
@week_data["weekendEnd"] = "sun"
|
26
|
+
@week_data["weekendStart"] = "sat"
|
27
|
+
@measurement_data = {}
|
28
|
+
@measurement_data["measurementSystem"] = "metric"
|
29
|
+
@measurement_data["paperSize"] = "A4"
|
30
|
+
end
|
31
|
+
|
32
|
+
public
|
33
|
+
attr_reader :calendar_preference
|
34
|
+
attr_reader :week_data
|
35
|
+
attr_reader :measurement_data
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# a language data file for Ruby/CLDR
|
5
|
+
#
|
6
|
+
# Generated by: CLDR::Generator
|
7
|
+
#
|
8
|
+
# CLDR version:
|
9
|
+
#
|
10
|
+
# Original file name: common/main/aa_DJ.xml
|
11
|
+
# Original file revision: 5717 $
|
12
|
+
#
|
13
|
+
# Copyright (C) 2006 Masao Mutoh
|
14
|
+
#
|
15
|
+
# This file is distributed under the same license as the Ruby/CLDR.
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
private
|
20
|
+
def init_data
|
21
|
+
@calendar_preference = "gregorian"
|
22
|
+
@week_data = {}
|
23
|
+
@week_data["firstDay"] = "mon"
|
24
|
+
@week_data["minDays"] = "1"
|
25
|
+
@week_data["weekendEnd"] = "sun"
|
26
|
+
@week_data["weekendStart"] = "sat"
|
27
|
+
@measurement_data = {}
|
28
|
+
@measurement_data["measurementSystem"] = "metric"
|
29
|
+
@measurement_data["paperSize"] = "A4"
|
30
|
+
end
|
31
|
+
|
32
|
+
public
|
33
|
+
attr_reader :calendar_preference
|
34
|
+
attr_reader :week_data
|
35
|
+
attr_reader :measurement_data
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# a language data file for Ruby/CLDR
|
5
|
+
#
|
6
|
+
# Generated by: CLDR::Generator
|
7
|
+
#
|
8
|
+
# CLDR version:
|
9
|
+
#
|
10
|
+
# Original file name: common/main/aa_ER.xml
|
11
|
+
# Original file revision: 5717 $
|
12
|
+
#
|
13
|
+
# Copyright (C) 2006 Masao Mutoh
|
14
|
+
#
|
15
|
+
# This file is distributed under the same license as the Ruby/CLDR.
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
private
|
20
|
+
def init_data
|
21
|
+
@calendar_preference = "gregorian"
|
22
|
+
@week_data = {}
|
23
|
+
@week_data["firstDay"] = "mon"
|
24
|
+
@week_data["minDays"] = "1"
|
25
|
+
@week_data["weekendEnd"] = "sun"
|
26
|
+
@week_data["weekendStart"] = "sat"
|
27
|
+
@measurement_data = {}
|
28
|
+
@measurement_data["measurementSystem"] = "metric"
|
29
|
+
@measurement_data["paperSize"] = "A4"
|
30
|
+
end
|
31
|
+
|
32
|
+
public
|
33
|
+
attr_reader :calendar_preference
|
34
|
+
attr_reader :week_data
|
35
|
+
attr_reader :measurement_data
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# a language data file for Ruby/CLDR
|
5
|
+
#
|
6
|
+
# Generated by: CLDR::Generator
|
7
|
+
#
|
8
|
+
# CLDR version:
|
9
|
+
#
|
10
|
+
# Original file name: common/main/aa_ET.xml
|
11
|
+
# Original file revision: 4123 $
|
12
|
+
#
|
13
|
+
# Copyright (C) 2006 Masao Mutoh
|
14
|
+
#
|
15
|
+
# This file is distributed under the same license as the Ruby/CLDR.
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
private
|
20
|
+
def init_data
|
21
|
+
@calendar_preference = "gregorian"
|
22
|
+
@week_data = {}
|
23
|
+
@week_data["firstDay"] = "mon"
|
24
|
+
@week_data["minDays"] = "1"
|
25
|
+
@week_data["weekendEnd"] = "sun"
|
26
|
+
@week_data["weekendStart"] = "sat"
|
27
|
+
@measurement_data = {}
|
28
|
+
@measurement_data["measurementSystem"] = "metric"
|
29
|
+
@measurement_data["paperSize"] = "A4"
|
30
|
+
end
|
31
|
+
|
32
|
+
public
|
33
|
+
attr_reader :calendar_preference
|
34
|
+
attr_reader :week_data
|
35
|
+
attr_reader :measurement_data
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# a language data file for Ruby/CLDR
|
5
|
+
#
|
6
|
+
# Generated by: CLDR::Generator
|
7
|
+
#
|
8
|
+
# CLDR version:
|
9
|
+
#
|
10
|
+
# Original file name: common/main/af.xml
|
11
|
+
# Original file revision: 5953 $
|
12
|
+
#
|
13
|
+
# Copyright (C) 2006 Masao Mutoh
|
14
|
+
#
|
15
|
+
# This file is distributed under the same license as the Ruby/CLDR.
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
private
|
20
|
+
def init_data
|
21
|
+
@calendar_preference = "gregorian"
|
22
|
+
@week_data = {}
|
23
|
+
@week_data["firstDay"] = "mon"
|
24
|
+
@week_data["minDays"] = "1"
|
25
|
+
@week_data["weekendEnd"] = "sun"
|
26
|
+
@week_data["weekendStart"] = "sat"
|
27
|
+
@measurement_data = {}
|
28
|
+
@measurement_data["measurementSystem"] = "metric"
|
29
|
+
@measurement_data["paperSize"] = "A4"
|
30
|
+
end
|
31
|
+
|
32
|
+
public
|
33
|
+
attr_reader :calendar_preference
|
34
|
+
attr_reader :week_data
|
35
|
+
attr_reader :measurement_data
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# a language data file for Ruby/CLDR
|
5
|
+
#
|
6
|
+
# Generated by: CLDR::Generator
|
7
|
+
#
|
8
|
+
# CLDR version:
|
9
|
+
#
|
10
|
+
# Original file name: common/main/af_NA.xml
|
11
|
+
# Original file revision: 5806 $
|
12
|
+
#
|
13
|
+
# Copyright (C) 2006 Masao Mutoh
|
14
|
+
#
|
15
|
+
# This file is distributed under the same license as the Ruby/CLDR.
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
private
|
20
|
+
def init_data
|
21
|
+
@calendar_preference = "gregorian"
|
22
|
+
@week_data = {}
|
23
|
+
@week_data["firstDay"] = "mon"
|
24
|
+
@week_data["minDays"] = "1"
|
25
|
+
@week_data["weekendEnd"] = "sun"
|
26
|
+
@week_data["weekendStart"] = "sat"
|
27
|
+
@measurement_data = {}
|
28
|
+
@measurement_data["measurementSystem"] = "metric"
|
29
|
+
@measurement_data["paperSize"] = "A4"
|
30
|
+
end
|
31
|
+
|
32
|
+
public
|
33
|
+
attr_reader :calendar_preference
|
34
|
+
attr_reader :week_data
|
35
|
+
attr_reader :measurement_data
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# a language data file for Ruby/CLDR
|
5
|
+
#
|
6
|
+
# Generated by: CLDR::Generator
|
7
|
+
#
|
8
|
+
# CLDR version:
|
9
|
+
#
|
10
|
+
# Original file name: common/main/af_ZA.xml
|
11
|
+
# Original file revision: 4123 $
|
12
|
+
#
|
13
|
+
# Copyright (C) 2006 Masao Mutoh
|
14
|
+
#
|
15
|
+
# This file is distributed under the same license as the Ruby/CLDR.
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
private
|
20
|
+
def init_data
|
21
|
+
@calendar_preference = "gregorian"
|
22
|
+
@week_data = {}
|
23
|
+
@week_data["firstDay"] = "mon"
|
24
|
+
@week_data["minDays"] = "1"
|
25
|
+
@week_data["weekendEnd"] = "sun"
|
26
|
+
@week_data["weekendStart"] = "sat"
|
27
|
+
@measurement_data = {}
|
28
|
+
@measurement_data["measurementSystem"] = "metric"
|
29
|
+
@measurement_data["paperSize"] = "A4"
|
30
|
+
end
|
31
|
+
|
32
|
+
public
|
33
|
+
attr_reader :calendar_preference
|
34
|
+
attr_reader :week_data
|
35
|
+
attr_reader :measurement_data
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# a language data file for Ruby/CLDR
|
5
|
+
#
|
6
|
+
# Generated by: CLDR::Generator
|
7
|
+
#
|
8
|
+
# CLDR version:
|
9
|
+
#
|
10
|
+
# Original file name: common/main/agq.xml
|
11
|
+
# Original file revision: 5799 $
|
12
|
+
#
|
13
|
+
# Copyright (C) 2006 Masao Mutoh
|
14
|
+
#
|
15
|
+
# This file is distributed under the same license as the Ruby/CLDR.
|
16
|
+
#
|
17
|
+
|
18
|
+
|
19
|
+
private
|
20
|
+
def init_data
|
21
|
+
@calendar_preference = "gregorian"
|
22
|
+
@week_data = {}
|
23
|
+
@week_data["firstDay"] = "mon"
|
24
|
+
@week_data["minDays"] = "1"
|
25
|
+
@week_data["weekendEnd"] = "sun"
|
26
|
+
@week_data["weekendStart"] = "sat"
|
27
|
+
@measurement_data = {}
|
28
|
+
@measurement_data["measurementSystem"] = "metric"
|
29
|
+
@measurement_data["paperSize"] = "A4"
|
30
|
+
end
|
31
|
+
|
32
|
+
public
|
33
|
+
attr_reader :calendar_preference
|
34
|
+
attr_reader :week_data
|
35
|
+
attr_reader :measurement_data
|