carmen 0.2.13 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/MIT-LICENSE +15 -2
- data/README.md +176 -0
- data/iso_data/world.yml +997 -0
- data/iso_data/world/ad.yml +15 -0
- data/iso_data/world/ae.yml +15 -0
- data/iso_data/world/af.yml +69 -0
- data/iso_data/world/ag.yml +17 -0
- data/iso_data/world/al.yml +25 -0
- data/iso_data/world/al/01.yml +7 -0
- data/iso_data/world/al/02.yml +5 -0
- data/iso_data/world/al/03.yml +9 -0
- data/iso_data/world/al/04.yml +7 -0
- data/iso_data/world/al/05.yml +7 -0
- data/iso_data/world/al/06.yml +9 -0
- data/iso_data/world/al/07.yml +7 -0
- data/iso_data/world/al/08.yml +7 -0
- data/iso_data/world/al/09.yml +7 -0
- data/iso_data/world/al/10.yml +7 -0
- data/iso_data/world/al/11.yml +5 -0
- data/iso_data/world/al/12.yml +7 -0
- data/iso_data/world/am.yml +23 -0
- data/iso_data/world/ao.yml +37 -0
- data/iso_data/world/ar.yml +47 -0
- data/iso_data/world/at.yml +19 -0
- data/iso_data/world/au.yml +17 -0
- data/iso_data/world/az.yml +143 -0
- data/iso_data/world/az/nx.yml +13 -0
- data/iso_data/world/ba.yml +7 -0
- data/iso_data/world/ba/bih.yml +21 -0
- data/iso_data/world/bb.yml +23 -0
- data/iso_data/world/bd.yml +13 -0
- data/iso_data/world/bd/1.yml +13 -0
- data/iso_data/world/bd/2.yml +23 -0
- data/iso_data/world/bd/3.yml +35 -0
- data/iso_data/world/bd/4.yml +21 -0
- data/iso_data/world/bd/5.yml +33 -0
- data/iso_data/world/bd/6.yml +9 -0
- data/iso_data/world/be.yml +23 -0
- data/iso_data/world/bf.yml +27 -0
- data/iso_data/world/bf/01.yml +13 -0
- data/iso_data/world/bf/02.yml +5 -0
- data/iso_data/world/bf/03.yml +3 -0
- data/iso_data/world/bf/04.yml +7 -0
- data/iso_data/world/bf/05.yml +7 -0
- data/iso_data/world/bf/06.yml +9 -0
- data/iso_data/world/bf/07.yml +7 -0
- data/iso_data/world/bf/08.yml +11 -0
- data/iso_data/world/bf/09.yml +7 -0
- data/iso_data/world/bf/10.yml +9 -0
- data/iso_data/world/bf/11.yml +7 -0
- data/iso_data/world/bf/12.yml +9 -0
- data/iso_data/world/bf/13.yml +9 -0
- data/iso_data/world/bg.yml +57 -0
- data/iso_data/world/bh.yml +11 -0
- data/iso_data/world/bi.yml +33 -0
- data/iso_data/world/bj.yml +25 -0
- data/iso_data/world/bl.yml +1 -0
- data/iso_data/world/bn.yml +9 -0
- data/iso_data/world/bo.yml +19 -0
- data/iso_data/world/br.yml +57 -0
- data/iso_data/world/bs.yml +65 -0
- data/iso_data/world/bt.yml +41 -0
- data/iso_data/world/bw.yml +21 -0
- data/iso_data/world/by.yml +15 -0
- data/iso_data/world/bz.yml +13 -0
- data/iso_data/world/ca.yml +27 -0
- data/iso_data/world/cd.yml +25 -0
- data/iso_data/world/cf.yml +35 -0
- data/iso_data/world/cg.yml +23 -0
- data/iso_data/world/ch.yml +53 -0
- data/iso_data/world/ci.yml +39 -0
- data/iso_data/world/cl.yml +31 -0
- data/iso_data/world/cm.yml +21 -0
- data/iso_data/world/cn.yml +69 -0
- data/iso_data/world/co.yml +67 -0
- data/iso_data/world/cr.yml +15 -0
- data/iso_data/world/cu.yml +31 -0
- data/iso_data/world/cv.yml +5 -0
- data/iso_data/world/cv/b.yml +15 -0
- data/iso_data/world/cv/s.yml +31 -0
- data/iso_data/world/cy.yml +13 -0
- data/iso_data/world/cz.yml +29 -0
- data/iso_data/world/cz/jc.yml +15 -0
- data/iso_data/world/cz/jm.yml +15 -0
- data/iso_data/world/cz/ka.yml +7 -0
- data/iso_data/world/cz/kr.yml +11 -0
- data/iso_data/world/cz/li.yml +9 -0
- data/iso_data/world/cz/mo.yml +13 -0
- data/iso_data/world/cz/ol.yml +11 -0
- data/iso_data/world/cz/pa.yml +9 -0
- data/iso_data/world/cz/pl.yml +15 -0
- data/iso_data/world/cz/pr.yml +31 -0
- data/iso_data/world/cz/st.yml +25 -0
- data/iso_data/world/cz/us.yml +15 -0
- data/iso_data/world/cz/vy.yml +11 -0
- data/iso_data/world/cz/zl.yml +9 -0
- data/iso_data/world/de.yml +33 -0
- data/iso_data/world/dj.yml +13 -0
- data/iso_data/world/dk.yml +11 -0
- data/iso_data/world/dm.yml +21 -0
- data/iso_data/world/do.yml +61 -0
- data/iso_data/world/dz.yml +97 -0
- data/iso_data/world/ec.yml +49 -0
- data/iso_data/world/ee.yml +31 -0
- data/iso_data/world/eg.yml +57 -0
- data/iso_data/world/er.yml +13 -0
- data/iso_data/world/es.yml +39 -0
- data/iso_data/world/es/an.yml +17 -0
- data/iso_data/world/es/ar.yml +7 -0
- data/iso_data/world/es/as.yml +3 -0
- data/iso_data/world/es/cb.yml +3 -0
- data/iso_data/world/es/cl.yml +19 -0
- data/iso_data/world/es/cm.yml +11 -0
- data/iso_data/world/es/cn.yml +5 -0
- data/iso_data/world/es/ct.yml +9 -0
- data/iso_data/world/es/ex.yml +5 -0
- data/iso_data/world/es/ga.yml +9 -0
- data/iso_data/world/es/ib.yml +3 -0
- data/iso_data/world/es/mc.yml +3 -0
- data/iso_data/world/es/md.yml +3 -0
- data/iso_data/world/es/nc.yml +3 -0
- data/iso_data/world/es/pv.yml +7 -0
- data/iso_data/world/es/ri.yml +3 -0
- data/iso_data/world/es/vc.yml +7 -0
- data/iso_data/world/et.yml +23 -0
- data/iso_data/world/fi.yml +13 -0
- data/iso_data/world/fj.yml +11 -0
- data/iso_data/world/fm.yml +9 -0
- data/iso_data/world/fr.yml +71 -0
- data/iso_data/world/fr/a.yml +5 -0
- data/iso_data/world/fr/b.yml +11 -0
- data/iso_data/world/fr/c.yml +9 -0
- data/iso_data/world/fr/d.yml +9 -0
- data/iso_data/world/fr/e.yml +9 -0
- data/iso_data/world/fr/f.yml +13 -0
- data/iso_data/world/fr/g.yml +9 -0
- data/iso_data/world/fr/h.yml +5 -0
- data/iso_data/world/fr/i.yml +9 -0
- data/iso_data/world/fr/j.yml +17 -0
- data/iso_data/world/fr/k.yml +11 -0
- data/iso_data/world/fr/l.yml +7 -0
- data/iso_data/world/fr/m.yml +9 -0
- data/iso_data/world/fr/n.yml +17 -0
- data/iso_data/world/fr/o.yml +5 -0
- data/iso_data/world/fr/p.yml +7 -0
- data/iso_data/world/fr/q.yml +5 -0
- data/iso_data/world/fr/r.yml +11 -0
- data/iso_data/world/fr/s.yml +7 -0
- data/iso_data/world/fr/t.yml +9 -0
- data/iso_data/world/fr/u.yml +13 -0
- data/iso_data/world/fr/v.yml +17 -0
- data/iso_data/world/ga.yml +19 -0
- data/iso_data/world/gb.yml +475 -0
- data/iso_data/world/gd.yml +15 -0
- data/iso_data/world/ge.yml +25 -0
- data/iso_data/world/gg.yml +1 -0
- data/iso_data/world/gh.yml +21 -0
- data/iso_data/world/gl.yml +9 -0
- data/iso_data/world/gm.yml +13 -0
- data/iso_data/world/gn.yml +17 -0
- data/iso_data/world/gn/b.yml +11 -0
- data/iso_data/world/gn/d.yml +11 -0
- data/iso_data/world/gn/f.yml +9 -0
- data/iso_data/world/gn/k.yml +11 -0
- data/iso_data/world/gn/l.yml +11 -0
- data/iso_data/world/gn/m.yml +7 -0
- data/iso_data/world/gn/n.yml +13 -0
- data/iso_data/world/gq.yml +19 -0
- data/iso_data/world/gr.yml +29 -0
- data/iso_data/world/gr/a.yml +11 -0
- data/iso_data/world/gr/b.yml +15 -0
- data/iso_data/world/gr/c.yml +9 -0
- data/iso_data/world/gr/d.yml +7 -0
- data/iso_data/world/gr/e.yml +9 -0
- data/iso_data/world/gr/f.yml +11 -0
- data/iso_data/world/gr/g.yml +7 -0
- data/iso_data/world/gr/h.yml +11 -0
- data/iso_data/world/gr/i.yml +3 -0
- data/iso_data/world/gr/j.yml +11 -0
- data/iso_data/world/gr/k.yml +7 -0
- data/iso_data/world/gr/l.yml +5 -0
- data/iso_data/world/gr/m.yml +9 -0
- data/iso_data/world/gt.yml +45 -0
- data/iso_data/world/gw.yml +9 -0
- data/iso_data/world/gw/l.yml +5 -0
- data/iso_data/world/gw/n.yml +7 -0
- data/iso_data/world/gw/s.yml +7 -0
- data/iso_data/world/gy.yml +21 -0
- data/iso_data/world/hn.yml +37 -0
- data/iso_data/world/hr.yml +43 -0
- data/iso_data/world/ht.yml +19 -0
- data/iso_data/world/hu.yml +87 -0
- data/iso_data/world/id.yml +15 -0
- data/iso_data/world/id/ij.yml +5 -0
- data/iso_data/world/id/jw.yml +13 -0
- data/iso_data/world/id/ka.yml +9 -0
- data/iso_data/world/id/ma.yml +5 -0
- data/iso_data/world/id/nu.yml +7 -0
- data/iso_data/world/id/sl.yml +13 -0
- data/iso_data/world/id/sm.yml +21 -0
- data/iso_data/world/ie.yml +9 -0
- data/iso_data/world/ie/c.yml +11 -0
- data/iso_data/world/ie/l.yml +25 -0
- data/iso_data/world/ie/m.yml +13 -0
- data/iso_data/world/ie/u.yml +7 -0
- data/iso_data/world/il.yml +13 -0
- data/iso_data/world/im.yml +1 -0
- data/iso_data/world/in.yml +71 -0
- data/iso_data/world/iq.yml +37 -0
- data/iso_data/world/ir.yml +61 -0
- data/iso_data/world/is.yml +19 -0
- data/iso_data/world/it.yml +41 -0
- data/iso_data/world/it/21.yml +17 -0
- data/iso_data/world/it/23.yml +3 -0
- data/iso_data/world/it/25.yml +25 -0
- data/iso_data/world/it/32.yml +5 -0
- data/iso_data/world/it/34.yml +15 -0
- data/iso_data/world/it/36.yml +9 -0
- data/iso_data/world/it/42.yml +9 -0
- data/iso_data/world/it/45.yml +19 -0
- data/iso_data/world/it/52.yml +21 -0
- data/iso_data/world/it/55.yml +5 -0
- data/iso_data/world/it/57.yml +11 -0
- data/iso_data/world/it/62.yml +11 -0
- data/iso_data/world/it/65.yml +9 -0
- data/iso_data/world/it/67.yml +5 -0
- data/iso_data/world/it/72.yml +11 -0
- data/iso_data/world/it/75.yml +13 -0
- data/iso_data/world/it/77.yml +5 -0
- data/iso_data/world/it/78.yml +11 -0
- data/iso_data/world/it/82.yml +19 -0
- data/iso_data/world/it/88.yml +17 -0
- data/iso_data/world/je.yml +1 -0
- data/iso_data/world/jm.yml +29 -0
- data/iso_data/world/jo.yml +25 -0
- data/iso_data/world/jp.yml +95 -0
- data/iso_data/world/ke.yml +15 -0
- data/iso_data/world/kg.yml +17 -0
- data/iso_data/world/kh.yml +49 -0
- data/iso_data/world/ki.yml +7 -0
- data/iso_data/world/km.yml +7 -0
- data/iso_data/world/kn.yml +5 -0
- data/iso_data/world/kn/k.yml +19 -0
- data/iso_data/world/kn/n.yml +11 -0
- data/iso_data/world/kp.yml +23 -0
- data/iso_data/world/kr.yml +33 -0
- data/iso_data/world/kw.yml +11 -0
- data/iso_data/world/kz.yml +33 -0
- data/iso_data/world/la.yml +37 -0
- data/iso_data/world/lb.yml +17 -0
- data/iso_data/world/li.yml +23 -0
- data/iso_data/world/lk.yml +19 -0
- data/iso_data/world/lk/1.yml +7 -0
- data/iso_data/world/lk/2.yml +7 -0
- data/iso_data/world/lk/3.yml +7 -0
- data/iso_data/world/lk/4.yml +11 -0
- data/iso_data/world/lk/5.yml +7 -0
- data/iso_data/world/lk/6.yml +5 -0
- data/iso_data/world/lk/7.yml +5 -0
- data/iso_data/world/lk/8.yml +5 -0
- data/iso_data/world/lk/9.yml +5 -0
- data/iso_data/world/lr.yml +27 -0
- data/iso_data/world/ls.yml +21 -0
- data/iso_data/world/lt.yml +21 -0
- data/iso_data/world/lu.yml +7 -0
- data/iso_data/world/lv.yml +67 -0
- data/iso_data/world/ly.yml +47 -0
- data/iso_data/world/ma.yml +33 -0
- data/iso_data/world/ma/01.yml +11 -0
- data/iso_data/world/ma/02.yml +5 -0
- data/iso_data/world/ma/03.yml +7 -0
- data/iso_data/world/ma/04.yml +13 -0
- data/iso_data/world/ma/05.yml +9 -0
- data/iso_data/world/ma/06.yml +11 -0
- data/iso_data/world/ma/07.yml +9 -0
- data/iso_data/world/ma/08.yml +9 -0
- data/iso_data/world/ma/09.yml +7 -0
- data/iso_data/world/ma/10.yml +5 -0
- data/iso_data/world/ma/11.yml +15 -0
- data/iso_data/world/ma/12.yml +5 -0
- data/iso_data/world/ma/13.yml +15 -0
- data/iso_data/world/ma/14.yml +11 -0
- data/iso_data/world/ma/15.yml +5 -0
- data/iso_data/world/ma/16.yml +5 -0
- data/iso_data/world/md.yml +75 -0
- data/iso_data/world/me.yml +43 -0
- data/iso_data/world/mf.yml +1 -0
- data/iso_data/world/mg.yml +13 -0
- data/iso_data/world/mh.yml +5 -0
- data/iso_data/world/mh/l.yml +29 -0
- data/iso_data/world/mh/t.yml +21 -0
- data/iso_data/world/mk.yml +169 -0
- data/iso_data/world/ml.yml +19 -0
- data/iso_data/world/mm.yml +29 -0
- data/iso_data/world/mn.yml +45 -0
- data/iso_data/world/mo.yml +1 -0
- data/iso_data/world/mr.yml +27 -0
- data/iso_data/world/mt.yml +137 -0
- data/iso_data/world/mu.yml +35 -0
- data/iso_data/world/mv.yml +41 -0
- data/iso_data/world/mw.yml +7 -0
- data/iso_data/world/mw/c.yml +19 -0
- data/iso_data/world/mw/n.yml +15 -0
- data/iso_data/world/mw/s.yml +25 -0
- data/iso_data/world/mx.yml +65 -0
- data/iso_data/world/my.yml +33 -0
- data/iso_data/world/mz.yml +23 -0
- data/iso_data/world/na.yml +27 -0
- data/iso_data/world/ne.yml +17 -0
- data/iso_data/world/ng.yml +75 -0
- data/iso_data/world/ni.yml +35 -0
- data/iso_data/world/nl.yml +25 -0
- data/iso_data/world/no.yml +43 -0
- data/iso_data/world/np.yml +11 -0
- data/iso_data/world/np/1.yml +7 -0
- data/iso_data/world/np/2.yml +7 -0
- data/iso_data/world/np/3.yml +7 -0
- data/iso_data/world/np/4.yml +7 -0
- data/iso_data/world/np/5.yml +5 -0
- data/iso_data/world/nr.yml +29 -0
- data/iso_data/world/nz.yml +7 -0
- data/iso_data/world/nz/n.yml +19 -0
- data/iso_data/world/nz/s.yml +15 -0
- data/iso_data/world/om.yml +19 -0
- data/iso_data/world/pa.yml +25 -0
- data/iso_data/world/pe.yml +53 -0
- data/iso_data/world/pg.yml +41 -0
- data/iso_data/world/ph.yml +35 -0
- data/iso_data/world/ph/01.yml +9 -0
- data/iso_data/world/ph/02.yml +11 -0
- data/iso_data/world/ph/03.yml +15 -0
- data/iso_data/world/ph/05.yml +13 -0
- data/iso_data/world/ph/06.yml +13 -0
- data/iso_data/world/ph/07.yml +9 -0
- data/iso_data/world/ph/08.yml +13 -0
- data/iso_data/world/ph/09.yml +9 -0
- data/iso_data/world/ph/10.yml +9 -0
- data/iso_data/world/ph/11.yml +13 -0
- data/iso_data/world/ph/12.yml +7 -0
- data/iso_data/world/ph/13.yml +11 -0
- data/iso_data/world/ph/14.yml +9 -0
- data/iso_data/world/ph/15.yml +13 -0
- data/iso_data/world/ph/40.yml +11 -0
- data/iso_data/world/ph/41.yml +11 -0
- data/iso_data/world/pk.yml +17 -0
- data/iso_data/world/pl.yml +33 -0
- data/iso_data/world/ps.yml +1 -0
- data/iso_data/world/pt.yml +41 -0
- data/iso_data/world/pw.yml +33 -0
- data/iso_data/world/py.yml +37 -0
- data/iso_data/world/qa.yml +19 -0
- data/iso_data/world/ro.yml +85 -0
- data/iso_data/world/rs.yml +41 -0
- data/iso_data/world/rs/km.yml +11 -0
- data/iso_data/world/rs/vo.yml +15 -0
- data/iso_data/world/ru.yml +167 -0
- data/iso_data/world/rw.yml +11 -0
- data/iso_data/world/sa.yml +27 -0
- data/iso_data/world/sb.yml +21 -0
- data/iso_data/world/sc.yml +51 -0
- data/iso_data/world/sd.yml +51 -0
- data/iso_data/world/se.yml +43 -0
- data/iso_data/world/sg.yml +11 -0
- data/iso_data/world/sh.yml +1 -0
- data/iso_data/world/si.yml +421 -0
- data/iso_data/world/sk.yml +17 -0
- data/iso_data/world/sl.yml +9 -0
- data/iso_data/world/sm.yml +19 -0
- data/iso_data/world/sn.yml +29 -0
- data/iso_data/world/so.yml +37 -0
- data/iso_data/world/sr.yml +21 -0
- data/iso_data/world/st.yml +5 -0
- data/iso_data/world/sv.yml +29 -0
- data/iso_data/world/sy.yml +29 -0
- data/iso_data/world/sz.yml +9 -0
- data/iso_data/world/td.yml +45 -0
- data/iso_data/world/tg.yml +11 -0
- data/iso_data/world/th.yml +155 -0
- data/iso_data/world/tj.yml +7 -0
- data/iso_data/world/tl.yml +27 -0
- data/iso_data/world/tm.yml +13 -0
- data/iso_data/world/tn.yml +49 -0
- data/iso_data/world/to.yml +11 -0
- data/iso_data/world/tr.yml +163 -0
- data/iso_data/world/tt.yml +33 -0
- data/iso_data/world/tv.yml +17 -0
- data/iso_data/world/tw.yml +47 -0
- data/iso_data/world/tz.yml +53 -0
- data/iso_data/world/ua.yml +55 -0
- data/iso_data/world/ug.yml +9 -0
- data/iso_data/world/ug/c.yml +33 -0
- data/iso_data/world/ug/e.yml +49 -0
- data/iso_data/world/ug/n.yml +43 -0
- data/iso_data/world/ug/w.yml +39 -0
- data/iso_data/world/um.yml +19 -0
- data/iso_data/world/us.yml +115 -0
- data/iso_data/world/uy.yml +39 -0
- data/iso_data/world/uz.yml +29 -0
- data/iso_data/world/vc.yml +13 -0
- data/iso_data/world/ve.yml +51 -0
- data/iso_data/world/vn.yml +129 -0
- data/iso_data/world/vu.yml +13 -0
- data/iso_data/world/ws.yml +23 -0
- data/iso_data/world/ye.yml +41 -0
- data/iso_data/world/za.yml +19 -0
- data/iso_data/world/zm.yml +19 -0
- data/iso_data/world/zw.yml +21 -0
- data/lib/carmen.rb +52 -143
- data/lib/carmen/country.rb +56 -0
- data/lib/carmen/i18n.rb +105 -0
- data/lib/carmen/querying.rb +34 -0
- data/lib/carmen/region.rb +107 -0
- data/lib/carmen/region_collection.rb +30 -0
- data/lib/carmen/utils.rb +53 -0
- data/lib/carmen/version.rb +1 -1
- data/lib/carmen/world.rb +29 -0
- data/locale/cn/world.yml +963 -0
- data/locale/cs/world.yml +983 -0
- data/locale/de/world.yml +1051 -0
- data/locale/en/world.yml +999 -0
- data/locale/en/world/ad.yml +18 -0
- data/locale/en/world/ae.yml +18 -0
- data/locale/en/world/af.yml +72 -0
- data/locale/en/world/ag.yml +20 -0
- data/locale/en/world/al.yml +28 -0
- data/locale/en/world/al/01.yml +11 -0
- data/locale/en/world/al/02.yml +9 -0
- data/locale/en/world/al/03.yml +13 -0
- data/locale/en/world/al/04.yml +11 -0
- data/locale/en/world/al/05.yml +11 -0
- data/locale/en/world/al/06.yml +13 -0
- data/locale/en/world/al/07.yml +11 -0
- data/locale/en/world/al/08.yml +11 -0
- data/locale/en/world/al/09.yml +11 -0
- data/locale/en/world/al/10.yml +11 -0
- data/locale/en/world/al/11.yml +9 -0
- data/locale/en/world/al/12.yml +11 -0
- data/locale/en/world/am.yml +26 -0
- data/locale/en/world/ao.yml +40 -0
- data/locale/en/world/ar.yml +50 -0
- data/locale/en/world/at.yml +22 -0
- data/locale/en/world/au.yml +20 -0
- data/locale/en/world/az.yml +146 -0
- data/locale/en/world/az/nx.yml +17 -0
- data/locale/en/world/ba.yml +10 -0
- data/locale/en/world/ba/bih.yml +25 -0
- data/locale/en/world/bb.yml +26 -0
- data/locale/en/world/bd.yml +16 -0
- data/locale/en/world/bd/1.yml +17 -0
- data/locale/en/world/bd/2.yml +27 -0
- data/locale/en/world/bd/3.yml +39 -0
- data/locale/en/world/bd/4.yml +25 -0
- data/locale/en/world/bd/5.yml +37 -0
- data/locale/en/world/bd/6.yml +13 -0
- data/locale/en/world/be.yml +26 -0
- data/locale/en/world/bf.yml +30 -0
- data/locale/en/world/bf/01.yml +17 -0
- data/locale/en/world/bf/02.yml +9 -0
- data/locale/en/world/bf/03.yml +7 -0
- data/locale/en/world/bf/04.yml +11 -0
- data/locale/en/world/bf/05.yml +11 -0
- data/locale/en/world/bf/06.yml +13 -0
- data/locale/en/world/bf/07.yml +11 -0
- data/locale/en/world/bf/08.yml +15 -0
- data/locale/en/world/bf/09.yml +11 -0
- data/locale/en/world/bf/10.yml +13 -0
- data/locale/en/world/bf/11.yml +11 -0
- data/locale/en/world/bf/12.yml +13 -0
- data/locale/en/world/bf/13.yml +13 -0
- data/locale/en/world/bg.yml +60 -0
- data/locale/en/world/bh.yml +14 -0
- data/locale/en/world/bi.yml +36 -0
- data/locale/en/world/bj.yml +28 -0
- data/locale/en/world/bl.yml +4 -0
- data/locale/en/world/bn.yml +12 -0
- data/locale/en/world/bo.yml +22 -0
- data/locale/en/world/br.yml +60 -0
- data/locale/en/world/bs.yml +68 -0
- data/locale/en/world/bt.yml +44 -0
- data/locale/en/world/bw.yml +24 -0
- data/locale/en/world/by.yml +18 -0
- data/locale/en/world/bz.yml +16 -0
- data/locale/en/world/ca.yml +30 -0
- data/locale/en/world/cd.yml +28 -0
- data/locale/en/world/cf.yml +38 -0
- data/locale/en/world/cg.yml +26 -0
- data/locale/en/world/ch.yml +56 -0
- data/locale/en/world/ci.yml +42 -0
- data/locale/en/world/cl.yml +34 -0
- data/locale/en/world/cm.yml +24 -0
- data/locale/en/world/cn.yml +72 -0
- data/locale/en/world/co.yml +70 -0
- data/locale/en/world/cr.yml +18 -0
- data/locale/en/world/cu.yml +34 -0
- data/locale/en/world/cv.yml +8 -0
- data/locale/en/world/cv/b.yml +19 -0
- data/locale/en/world/cv/s.yml +35 -0
- data/locale/en/world/cy.yml +16 -0
- data/locale/en/world/cz.yml +32 -0
- data/locale/en/world/cz/jc.yml +19 -0
- data/locale/en/world/cz/jm.yml +19 -0
- data/locale/en/world/cz/ka.yml +11 -0
- data/locale/en/world/cz/kr.yml +15 -0
- data/locale/en/world/cz/li.yml +13 -0
- data/locale/en/world/cz/mo.yml +17 -0
- data/locale/en/world/cz/ol.yml +15 -0
- data/locale/en/world/cz/pa.yml +13 -0
- data/locale/en/world/cz/pl.yml +19 -0
- data/locale/en/world/cz/pr.yml +35 -0
- data/locale/en/world/cz/st.yml +29 -0
- data/locale/en/world/cz/us.yml +19 -0
- data/locale/en/world/cz/vy.yml +15 -0
- data/locale/en/world/cz/zl.yml +13 -0
- data/locale/en/world/de.yml +36 -0
- data/locale/en/world/dj.yml +16 -0
- data/locale/en/world/dk.yml +14 -0
- data/locale/en/world/dm.yml +24 -0
- data/locale/en/world/do.yml +64 -0
- data/locale/en/world/dz.yml +100 -0
- data/locale/en/world/ec.yml +52 -0
- data/locale/en/world/ee.yml +34 -0
- data/locale/en/world/eg.yml +60 -0
- data/locale/en/world/er.yml +16 -0
- data/locale/en/world/es.yml +42 -0
- data/locale/en/world/es/an.yml +21 -0
- data/locale/en/world/es/ar.yml +11 -0
- data/locale/en/world/es/as.yml +7 -0
- data/locale/en/world/es/cb.yml +7 -0
- data/locale/en/world/es/cl.yml +23 -0
- data/locale/en/world/es/cm.yml +15 -0
- data/locale/en/world/es/cn.yml +9 -0
- data/locale/en/world/es/ct.yml +13 -0
- data/locale/en/world/es/ex.yml +9 -0
- data/locale/en/world/es/ga.yml +13 -0
- data/locale/en/world/es/ib.yml +7 -0
- data/locale/en/world/es/mc.yml +7 -0
- data/locale/en/world/es/md.yml +7 -0
- data/locale/en/world/es/nc.yml +7 -0
- data/locale/en/world/es/pv.yml +11 -0
- data/locale/en/world/es/ri.yml +7 -0
- data/locale/en/world/es/vc.yml +11 -0
- data/locale/en/world/et.yml +26 -0
- data/locale/en/world/fi.yml +16 -0
- data/locale/en/world/fj.yml +14 -0
- data/locale/en/world/fm.yml +12 -0
- data/locale/en/world/fr.yml +74 -0
- data/locale/en/world/fr/a.yml +9 -0
- data/locale/en/world/fr/b.yml +15 -0
- data/locale/en/world/fr/c.yml +13 -0
- data/locale/en/world/fr/d.yml +13 -0
- data/locale/en/world/fr/e.yml +13 -0
- data/locale/en/world/fr/f.yml +17 -0
- data/locale/en/world/fr/g.yml +13 -0
- data/locale/en/world/fr/h.yml +9 -0
- data/locale/en/world/fr/i.yml +13 -0
- data/locale/en/world/fr/j.yml +21 -0
- data/locale/en/world/fr/k.yml +15 -0
- data/locale/en/world/fr/l.yml +11 -0
- data/locale/en/world/fr/m.yml +13 -0
- data/locale/en/world/fr/n.yml +21 -0
- data/locale/en/world/fr/o.yml +9 -0
- data/locale/en/world/fr/p.yml +11 -0
- data/locale/en/world/fr/q.yml +9 -0
- data/locale/en/world/fr/r.yml +15 -0
- data/locale/en/world/fr/s.yml +11 -0
- data/locale/en/world/fr/t.yml +13 -0
- data/locale/en/world/fr/u.yml +17 -0
- data/locale/en/world/fr/v.yml +21 -0
- data/locale/en/world/ga.yml +22 -0
- data/locale/en/world/gb.yml +478 -0
- data/locale/en/world/gd.yml +18 -0
- data/locale/en/world/ge.yml +28 -0
- data/locale/en/world/gg.yml +4 -0
- data/locale/en/world/gh.yml +24 -0
- data/locale/en/world/gl.yml +12 -0
- data/locale/en/world/gm.yml +16 -0
- data/locale/en/world/gn.yml +20 -0
- data/locale/en/world/gn/b.yml +15 -0
- data/locale/en/world/gn/d.yml +15 -0
- data/locale/en/world/gn/f.yml +13 -0
- data/locale/en/world/gn/k.yml +15 -0
- data/locale/en/world/gn/l.yml +15 -0
- data/locale/en/world/gn/m.yml +11 -0
- data/locale/en/world/gn/n.yml +17 -0
- data/locale/en/world/gq.yml +22 -0
- data/locale/en/world/gr.yml +32 -0
- data/locale/en/world/gr/a.yml +15 -0
- data/locale/en/world/gr/b.yml +19 -0
- data/locale/en/world/gr/c.yml +13 -0
- data/locale/en/world/gr/d.yml +11 -0
- data/locale/en/world/gr/e.yml +13 -0
- data/locale/en/world/gr/f.yml +15 -0
- data/locale/en/world/gr/g.yml +11 -0
- data/locale/en/world/gr/h.yml +15 -0
- data/locale/en/world/gr/i.yml +7 -0
- data/locale/en/world/gr/j.yml +15 -0
- data/locale/en/world/gr/k.yml +11 -0
- data/locale/en/world/gr/l.yml +9 -0
- data/locale/en/world/gr/m.yml +13 -0
- data/locale/en/world/gt.yml +48 -0
- data/locale/en/world/gw.yml +12 -0
- data/locale/en/world/gw/l.yml +9 -0
- data/locale/en/world/gw/n.yml +11 -0
- data/locale/en/world/gw/s.yml +11 -0
- data/locale/en/world/gy.yml +24 -0
- data/locale/en/world/hn.yml +40 -0
- data/locale/en/world/hr.yml +46 -0
- data/locale/en/world/ht.yml +22 -0
- data/locale/en/world/hu.yml +90 -0
- data/locale/en/world/id.yml +18 -0
- data/locale/en/world/id/ij.yml +9 -0
- data/locale/en/world/id/jw.yml +17 -0
- data/locale/en/world/id/ka.yml +13 -0
- data/locale/en/world/id/ma.yml +9 -0
- data/locale/en/world/id/nu.yml +11 -0
- data/locale/en/world/id/sl.yml +17 -0
- data/locale/en/world/id/sm.yml +25 -0
- data/locale/en/world/ie.yml +12 -0
- data/locale/en/world/ie/c.yml +15 -0
- data/locale/en/world/ie/l.yml +29 -0
- data/locale/en/world/ie/m.yml +17 -0
- data/locale/en/world/ie/u.yml +11 -0
- data/locale/en/world/il.yml +16 -0
- data/locale/en/world/im.yml +4 -0
- data/locale/en/world/in.yml +74 -0
- data/locale/en/world/iq.yml +40 -0
- data/locale/en/world/ir.yml +64 -0
- data/locale/en/world/is.yml +22 -0
- data/locale/en/world/it.yml +44 -0
- data/locale/en/world/it/21.yml +21 -0
- data/locale/en/world/it/23.yml +7 -0
- data/locale/en/world/it/25.yml +29 -0
- data/locale/en/world/it/32.yml +9 -0
- data/locale/en/world/it/34.yml +19 -0
- data/locale/en/world/it/36.yml +13 -0
- data/locale/en/world/it/42.yml +13 -0
- data/locale/en/world/it/45.yml +23 -0
- data/locale/en/world/it/52.yml +25 -0
- data/locale/en/world/it/55.yml +9 -0
- data/locale/en/world/it/57.yml +15 -0
- data/locale/en/world/it/62.yml +15 -0
- data/locale/en/world/it/65.yml +13 -0
- data/locale/en/world/it/67.yml +9 -0
- data/locale/en/world/it/72.yml +15 -0
- data/locale/en/world/it/75.yml +17 -0
- data/locale/en/world/it/77.yml +9 -0
- data/locale/en/world/it/78.yml +15 -0
- data/locale/en/world/it/82.yml +23 -0
- data/locale/en/world/it/88.yml +21 -0
- data/locale/en/world/je.yml +4 -0
- data/locale/en/world/jm.yml +32 -0
- data/locale/en/world/jo.yml +28 -0
- data/locale/en/world/jp.yml +98 -0
- data/locale/en/world/ke.yml +18 -0
- data/locale/en/world/kg.yml +20 -0
- data/locale/en/world/kh.yml +52 -0
- data/locale/en/world/ki.yml +10 -0
- data/locale/en/world/km.yml +10 -0
- data/locale/en/world/kn.yml +8 -0
- data/locale/en/world/kn/k.yml +23 -0
- data/locale/en/world/kn/n.yml +15 -0
- data/locale/en/world/kp.yml +26 -0
- data/locale/en/world/kr.yml +36 -0
- data/locale/en/world/kw.yml +14 -0
- data/locale/en/world/kz.yml +36 -0
- data/locale/en/world/la.yml +40 -0
- data/locale/en/world/lb.yml +20 -0
- data/locale/en/world/li.yml +26 -0
- data/locale/en/world/lk.yml +22 -0
- data/locale/en/world/lk/1.yml +11 -0
- data/locale/en/world/lk/2.yml +11 -0
- data/locale/en/world/lk/3.yml +11 -0
- data/locale/en/world/lk/4.yml +15 -0
- data/locale/en/world/lk/5.yml +11 -0
- data/locale/en/world/lk/6.yml +9 -0
- data/locale/en/world/lk/7.yml +9 -0
- data/locale/en/world/lk/8.yml +9 -0
- data/locale/en/world/lk/9.yml +9 -0
- data/locale/en/world/lr.yml +30 -0
- data/locale/en/world/ls.yml +24 -0
- data/locale/en/world/lt.yml +24 -0
- data/locale/en/world/lu.yml +10 -0
- data/locale/en/world/lv.yml +70 -0
- data/locale/en/world/ly.yml +50 -0
- data/locale/en/world/ma.yml +36 -0
- data/locale/en/world/ma/01.yml +15 -0
- data/locale/en/world/ma/02.yml +9 -0
- data/locale/en/world/ma/03.yml +11 -0
- data/locale/en/world/ma/04.yml +17 -0
- data/locale/en/world/ma/05.yml +13 -0
- data/locale/en/world/ma/06.yml +15 -0
- data/locale/en/world/ma/07.yml +13 -0
- data/locale/en/world/ma/08.yml +13 -0
- data/locale/en/world/ma/09.yml +11 -0
- data/locale/en/world/ma/10.yml +9 -0
- data/locale/en/world/ma/11.yml +19 -0
- data/locale/en/world/ma/12.yml +9 -0
- data/locale/en/world/ma/13.yml +19 -0
- data/locale/en/world/ma/14.yml +15 -0
- data/locale/en/world/ma/15.yml +9 -0
- data/locale/en/world/ma/16.yml +9 -0
- data/locale/en/world/md.yml +78 -0
- data/locale/en/world/me.yml +46 -0
- data/locale/en/world/mf.yml +4 -0
- data/locale/en/world/mg.yml +16 -0
- data/locale/en/world/mh.yml +8 -0
- data/locale/en/world/mh/l.yml +33 -0
- data/locale/en/world/mh/t.yml +25 -0
- data/locale/en/world/mk.yml +172 -0
- data/locale/en/world/ml.yml +22 -0
- data/locale/en/world/mm.yml +32 -0
- data/locale/en/world/mn.yml +48 -0
- data/locale/en/world/mo.yml +4 -0
- data/locale/en/world/mr.yml +30 -0
- data/locale/en/world/mt.yml +140 -0
- data/locale/en/world/mu.yml +38 -0
- data/locale/en/world/mv.yml +44 -0
- data/locale/en/world/mw.yml +10 -0
- data/locale/en/world/mw/c.yml +23 -0
- data/locale/en/world/mw/n.yml +19 -0
- data/locale/en/world/mw/s.yml +29 -0
- data/locale/en/world/mx.yml +68 -0
- data/locale/en/world/my.yml +36 -0
- data/locale/en/world/mz.yml +26 -0
- data/locale/en/world/na.yml +30 -0
- data/locale/en/world/ne.yml +20 -0
- data/locale/en/world/ng.yml +78 -0
- data/locale/en/world/ni.yml +38 -0
- data/locale/en/world/nl.yml +28 -0
- data/locale/en/world/no.yml +46 -0
- data/locale/en/world/np.yml +14 -0
- data/locale/en/world/np/1.yml +11 -0
- data/locale/en/world/np/2.yml +11 -0
- data/locale/en/world/np/3.yml +11 -0
- data/locale/en/world/np/4.yml +11 -0
- data/locale/en/world/np/5.yml +9 -0
- data/locale/en/world/nr.yml +32 -0
- data/locale/en/world/nz.yml +10 -0
- data/locale/en/world/nz/n.yml +23 -0
- data/locale/en/world/nz/s.yml +19 -0
- data/locale/en/world/om.yml +22 -0
- data/locale/en/world/pa.yml +28 -0
- data/locale/en/world/pe.yml +56 -0
- data/locale/en/world/pg.yml +44 -0
- data/locale/en/world/ph.yml +38 -0
- data/locale/en/world/ph/01.yml +13 -0
- data/locale/en/world/ph/02.yml +15 -0
- data/locale/en/world/ph/03.yml +19 -0
- data/locale/en/world/ph/05.yml +17 -0
- data/locale/en/world/ph/06.yml +17 -0
- data/locale/en/world/ph/07.yml +13 -0
- data/locale/en/world/ph/08.yml +17 -0
- data/locale/en/world/ph/09.yml +13 -0
- data/locale/en/world/ph/10.yml +13 -0
- data/locale/en/world/ph/11.yml +17 -0
- data/locale/en/world/ph/12.yml +11 -0
- data/locale/en/world/ph/13.yml +15 -0
- data/locale/en/world/ph/14.yml +13 -0
- data/locale/en/world/ph/15.yml +17 -0
- data/locale/en/world/ph/40.yml +15 -0
- data/locale/en/world/ph/41.yml +15 -0
- data/locale/en/world/pk.yml +20 -0
- data/locale/en/world/pl.yml +36 -0
- data/locale/en/world/ps.yml +4 -0
- data/locale/en/world/pt.yml +44 -0
- data/locale/en/world/pw.yml +36 -0
- data/locale/en/world/py.yml +40 -0
- data/locale/en/world/qa.yml +22 -0
- data/locale/en/world/ro.yml +88 -0
- data/locale/en/world/rs.yml +44 -0
- data/locale/en/world/rs/km.yml +15 -0
- data/locale/en/world/rs/vo.yml +19 -0
- data/locale/en/world/ru.yml +170 -0
- data/locale/en/world/rw.yml +14 -0
- data/locale/en/world/sa.yml +30 -0
- data/locale/en/world/sb.yml +24 -0
- data/locale/en/world/sc.yml +54 -0
- data/locale/en/world/sd.yml +54 -0
- data/locale/en/world/se.yml +46 -0
- data/locale/en/world/sg.yml +14 -0
- data/locale/en/world/sh.yml +4 -0
- data/locale/en/world/si.yml +424 -0
- data/locale/en/world/sk.yml +20 -0
- data/locale/en/world/sl.yml +12 -0
- data/locale/en/world/sm.yml +22 -0
- data/locale/en/world/sn.yml +32 -0
- data/locale/en/world/so.yml +40 -0
- data/locale/en/world/sr.yml +24 -0
- data/locale/en/world/st.yml +8 -0
- data/locale/en/world/sv.yml +32 -0
- data/locale/en/world/sy.yml +32 -0
- data/locale/en/world/sz.yml +12 -0
- data/locale/en/world/td.yml +48 -0
- data/locale/en/world/tg.yml +14 -0
- data/locale/en/world/th.yml +158 -0
- data/locale/en/world/tj.yml +10 -0
- data/locale/en/world/tl.yml +30 -0
- data/locale/en/world/tm.yml +16 -0
- data/locale/en/world/tn.yml +52 -0
- data/locale/en/world/to.yml +14 -0
- data/locale/en/world/tr.yml +166 -0
- data/locale/en/world/tt.yml +36 -0
- data/locale/en/world/tv.yml +20 -0
- data/locale/en/world/tw.yml +50 -0
- data/locale/en/world/tz.yml +56 -0
- data/locale/en/world/ua.yml +58 -0
- data/locale/en/world/ug.yml +12 -0
- data/locale/en/world/ug/c.yml +37 -0
- data/locale/en/world/ug/e.yml +53 -0
- data/locale/en/world/ug/n.yml +47 -0
- data/locale/en/world/ug/w.yml +43 -0
- data/locale/en/world/um.yml +22 -0
- data/locale/en/world/us.yml +118 -0
- data/locale/en/world/uy.yml +42 -0
- data/locale/en/world/uz.yml +32 -0
- data/locale/en/world/vc.yml +16 -0
- data/locale/en/world/ve.yml +54 -0
- data/locale/en/world/vn.yml +132 -0
- data/locale/en/world/vu.yml +16 -0
- data/locale/en/world/ws.yml +26 -0
- data/locale/en/world/ye.yml +44 -0
- data/locale/en/world/za.yml +22 -0
- data/locale/en/world/zm.yml +22 -0
- data/locale/en/world/zw.yml +24 -0
- data/locale/es/world.yml +891 -0
- data/locale/fi/world.yml +1015 -0
- data/locale/hi/world.yml +983 -0
- data/locale/it/world.yml +955 -0
- data/locale/jp/world.yml +983 -0
- data/locale/ko/world.yml +955 -0
- data/locale/nl/world.yml +1003 -0
- data/locale/pl/world.yml +983 -0
- data/locale/pt/world.yml +1015 -0
- data/locale/ru/world.yml +1015 -0
- data/locale/sk/world.yml +983 -0
- data/locale/sv/world.yml +1039 -0
- data/locale/tr/world.yml +955 -0
- metadata +883 -101
- data/README.rdoc +0 -112
- data/data/countries/cn.yml +0 -481
- data/data/countries/cs.yml +0 -495
- data/data/countries/de.yml +0 -527
- data/data/countries/en.yml +0 -508
- data/data/countries/es.yml +0 -439
- data/data/countries/fi.yml +0 -508
- data/data/countries/hi.yml +0 -491
- data/data/countries/it.yml +0 -477
- data/data/countries/jp.yml +0 -491
- data/data/countries/nl.yml +0 -501
- data/data/countries/pl.yml +0 -495
- data/data/countries/pt.yml +0 -508
- data/data/countries/ru.yml +0 -507
- data/data/countries/sk.yml +0 -495
- data/data/countries/sv.yml +0 -519
- data/data/states/au.yml +0 -17
- data/data/states/br.yml +0 -55
- data/data/states/ca.yml +0 -27
- data/data/states/cu.yml +0 -31
- data/data/states/de.yml +0 -33
- data/data/states/dk.yml +0 -11
- data/data/states/es.yml +0 -39
- data/data/states/hr.yml +0 -43
- data/data/states/in.yml +0 -73
- data/data/states/it.yml +0 -207
- data/data/states/mx.yml +0 -65
- data/data/states/nl.yml +0 -25
- data/data/states/no.yml +0 -39
- data/data/states/nz.yml +0 -35
- data/data/states/ua.yml +0 -51
- data/data/states/us.yml +0 -126
- data/lib/carmen/action_view_helpers.rb +0 -68
- data/lib/carmen/railtie.rb +0 -17
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
+
### 1.0.0pre
|
2
|
+
* Complete rewrite. New data source and API. Extracting Rails view
|
3
|
+
helpers into seperate gem.
|
4
|
+
|
1
5
|
### 0.2.12
|
2
6
|
* Republish the gem with Ruby 1.8.7.
|
7
|
+
|
3
8
|
### 0.2.11
|
4
9
|
* Remove Jeweler and release new version.
|
10
|
+
|
5
11
|
### 0.2.10
|
6
12
|
* Generate the gem with Ruby 1.8.7 to try to fix YAML library
|
7
13
|
incompatibilities.
|
14
|
+
|
8
15
|
### 0.2.9
|
9
16
|
* Preserve order of priority_countries in country_select (castiglione)
|
10
17
|
* Add Finnish localization (marjakapyaho)
|
data/MIT-LICENSE
CHANGED
@@ -1,5 +1,18 @@
|
|
1
|
-
Copyright (c)
|
2
|
-
|
1
|
+
Copyright (c) 2011 Jim Benton
|
2
|
+
|
3
|
+
View helpers based on code (c) 2008 Michael Koziarski (http://github.com/rails/country_select)
|
4
|
+
|
5
|
+
Contains data from the iso-codes Debian project, released under the LGPL:
|
6
|
+
|
7
|
+
Copyright (C) 2004-2006 Alastair McKinstry <mckinstry@computer.org>
|
8
|
+
Copyright (C) 2004, 2007 Christian Perrier <bubulle@debian.org>
|
9
|
+
Copyright (C) 2005-2007 Tobias Quathamer <toddy@debian.org>
|
10
|
+
Copyright (C) 2007, 2009 LI Daobing <lidaobing@gmail.com>
|
11
|
+
Copyright (C) 2007-2010 Alexis Darrasse <alexis@ortsa.com>
|
12
|
+
|
13
|
+
Source: <http://www.iso.org/iso/country_codes/background_on_iso_3166/iso_3166-2.htm>
|
14
|
+
|
15
|
+
More info: http://pkg-isocodes.alioth.debian.org/
|
3
16
|
|
4
17
|
Permission is hereby granted, free of charge, to any person obtaining
|
5
18
|
a copy of this software and associated documentation files (the
|
data/README.md
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
# Carmen- A repository of geographic regions for Ruby
|
2
|
+
|
3
|
+
[![Build Status](https://secure.travis-ci.org/jim/carmen.png?branch=master)](http://travis-ci.org/jim/carmen)
|
4
|
+
|
5
|
+
Carmen 1.0 is a rewrite of the library, seperating out the geographic
|
6
|
+
components from the Rails-specific view helpers. If you are using Carmen with
|
7
|
+
Rails, you should check out the
|
8
|
+
[carmen-rails](http://github.com/jim/carmen-rails) library.
|
9
|
+
|
10
|
+
The [0.2.x branch](https://github.com/jim/carmen/tree/0.2.x) contains the previous
|
11
|
+
version of Carmen should you need it for some reason.
|
12
|
+
|
13
|
+
Carmen 1.0 features the following:
|
14
|
+
|
15
|
+
* A new, cleaner API
|
16
|
+
* Support for the old API via an optional require
|
17
|
+
* More complete data via the iso-codes Debian package (idea borrowed from [here](https://github.com/pluginaweek/has_addresses))
|
18
|
+
* A sane approach to internationalization
|
19
|
+
|
20
|
+
# How to Use Carmen
|
21
|
+
|
22
|
+
Carmen is designed to make it easy to access Country and region data.
|
23
|
+
You can query for a country by name or code:
|
24
|
+
|
25
|
+
require 'carmen'
|
26
|
+
include Carmen
|
27
|
+
|
28
|
+
us = Country.named('United States')
|
29
|
+
=> <#Carmen::Country name="United States">
|
30
|
+
|
31
|
+
A Country object has some attributes that may be useful:
|
32
|
+
|
33
|
+
us.alpha_2_code
|
34
|
+
=> 'US'
|
35
|
+
|
36
|
+
us.alpha_3_code
|
37
|
+
=> 'USA'
|
38
|
+
|
39
|
+
us.code # alias for alpha_2_code
|
40
|
+
=> 'US'
|
41
|
+
|
42
|
+
us.official_name
|
43
|
+
=> "United States of America"
|
44
|
+
|
45
|
+
A `Country` (and its subregions) can contain subregions. In the US these are states, but other countries have other types of regions:
|
46
|
+
|
47
|
+
us.subregions?
|
48
|
+
=> true
|
49
|
+
|
50
|
+
us.subregions.first
|
51
|
+
=> <#Carmen::Region name="Alabama" type="state">
|
52
|
+
|
53
|
+
`Country#subregions` returns a `RegionCollection`, which can be queried
|
54
|
+
similarly to a `Country` to find, for instance, a specific state:
|
55
|
+
|
56
|
+
illinois = us.subregions.coded('IL')
|
57
|
+
=> <#Carmen::Region "Illinois">
|
58
|
+
|
59
|
+
Subregions support a smaller set of attributes than countries:
|
60
|
+
|
61
|
+
illinois.name
|
62
|
+
=> "Illinois"
|
63
|
+
|
64
|
+
illinois.code
|
65
|
+
=> "IL"
|
66
|
+
|
67
|
+
illinois.type
|
68
|
+
=> "state"
|
69
|
+
|
70
|
+
Some subregions may contain additional subregions. An example of this is Spain:
|
71
|
+
|
72
|
+
spain = Country.named('Spain')
|
73
|
+
andalucia = spain.subregions.first
|
74
|
+
=> <#Carmen::Region name="Andalucía" type="autonomous community">
|
75
|
+
|
76
|
+
andalucia.subregions?
|
77
|
+
=> true
|
78
|
+
|
79
|
+
andalucia.subregions.first
|
80
|
+
=> <#Carmen::Region name="Almería" type="province">
|
81
|
+
|
82
|
+
## How Carmen organizes data
|
83
|
+
|
84
|
+
In order to facilitate support for I18n, Carmen stores the structure of regions
|
85
|
+
seperately from the strings that represent a region's names. The defualt data
|
86
|
+
that ships with Carmen is in the iso_data and locale directories,
|
87
|
+
respectively.
|
88
|
+
|
89
|
+
## Overriding structural data
|
90
|
+
|
91
|
+
You might want to tweak the data that Carmen provides for a variety of reasons.
|
92
|
+
Carmen provides an `overlay_path` which can be set to point to a set of data that will be
|
93
|
+
overlayed on top of the standard data. The structure of the files in this directory should mirror those in the data path that Carmen ships with.
|
94
|
+
|
95
|
+
To adda new country to the system, you would create a directory (let's use `my_data` as an example), and create a `world.yml` file inside it. Then set Carmen to use the
|
96
|
+
new overlay path:
|
97
|
+
|
98
|
+
Carmen.overlay_path = File.expand_path('../my_data', __FILE___)
|
99
|
+
|
100
|
+
Elements within the data files are identified using their `code` values (or, in the case of countries, `alpha_2_code`). Create a new block for the country you wish to add inside `my_data/world.yml`:
|
101
|
+
|
102
|
+
---
|
103
|
+
- alpha_2_code: ZZ
|
104
|
+
alpha_3_code: ZZZ
|
105
|
+
numeric_code: "999"
|
106
|
+
type: country
|
107
|
+
|
108
|
+
Now, modify the fields you wish to change, and delete the others. Be sure to specify `alpha_2_code` for countries and `code` for subregions, as those values are used internally by Carmen to match your customized data with the corresponding data in the default dataset.
|
109
|
+
|
110
|
+
Now, Carmen will reflect your personal view of the world:
|
111
|
+
|
112
|
+
Carmen::Country.coded('ZZ').type
|
113
|
+
=> "country"
|
114
|
+
|
115
|
+
You will also want to create a localization file with the names for the new
|
116
|
+
region. See the section 'Customizing an existing locale', below.
|
117
|
+
|
118
|
+
### Modifying existing elements
|
119
|
+
|
120
|
+
Existing regions can be modified by copying their existing data block into
|
121
|
+
a new file at the correct overlay path, and modifying the values as desired.
|
122
|
+
|
123
|
+
### Disabling elements
|
124
|
+
|
125
|
+
It is also possible to remove an element from the dataset by setting its `_enabled` value to [anything YAML considers false](http://yaml.org/type/bool.html), such as 'false' or 'no':
|
126
|
+
|
127
|
+
- alpha_2_code: EU
|
128
|
+
_enabled: false
|
129
|
+
|
130
|
+
This will cause Carmen to not return that element from any query:
|
131
|
+
|
132
|
+
Carmen::Country.coded('EU')
|
133
|
+
=> nil
|
134
|
+
|
135
|
+
## Localization
|
136
|
+
|
137
|
+
Carmen ships with very simple I18n support. You can tell Carmen to use your own
|
138
|
+
I18n backend:
|
139
|
+
|
140
|
+
Carmen.i18n_backend = YourI18nBackend.new
|
141
|
+
|
142
|
+
The object used as a backend must respond to `t` with a single argument (the
|
143
|
+
key being looked up). This key will look something like `en.world.us.il.name`.
|
144
|
+
|
145
|
+
## Setting the locale
|
146
|
+
|
147
|
+
If you use the built in I18n support, you can set the locale:
|
148
|
+
|
149
|
+
Carmen.i18n_backend.locale = :es
|
150
|
+
|
151
|
+
Each region is assigned
|
152
|
+
a localization key based on the formula world.PARENT\_CODE.CODE. The
|
153
|
+
key used for the United States is `world.us`.
|
154
|
+
|
155
|
+
## Customizing an existing locale
|
156
|
+
|
157
|
+
The library ships with a set of YAML files that contain localizations of many
|
158
|
+
country names (and some states). If you want to override any of these values,
|
159
|
+
create a YAML file that contains a nested hash structure, where each segment of
|
160
|
+
the key is a hash:
|
161
|
+
|
162
|
+
en:
|
163
|
+
world:
|
164
|
+
us:
|
165
|
+
official_name: These Crazy States
|
166
|
+
|
167
|
+
This file can live anywhere, but it is recommended that it be stored in
|
168
|
+
a structure similar to the one Carmen uses for its locale storage.
|
169
|
+
|
170
|
+
To tell Carmen to load this file, add the directory it is contained in to the
|
171
|
+
set of locale paths used by the backend:
|
172
|
+
|
173
|
+
Carmen.i18n_backend.append_locale_path('/path/to/your/locale/files')
|
174
|
+
|
175
|
+
If you are using your own backend, then follow the steps necessary to have it
|
176
|
+
load your additional files instead.
|
data/iso_data/world.yml
ADDED
@@ -0,0 +1,997 @@
|
|
1
|
+
---
|
2
|
+
- alpha_2_code: AD
|
3
|
+
alpha_3_code: AND
|
4
|
+
numeric_code: '020'
|
5
|
+
type: country
|
6
|
+
- alpha_2_code: AE
|
7
|
+
alpha_3_code: ARE
|
8
|
+
numeric_code: '784'
|
9
|
+
type: country
|
10
|
+
- alpha_2_code: AF
|
11
|
+
alpha_3_code: AFG
|
12
|
+
numeric_code: '004'
|
13
|
+
type: country
|
14
|
+
- alpha_2_code: AG
|
15
|
+
alpha_3_code: ATG
|
16
|
+
numeric_code: '028'
|
17
|
+
type: country
|
18
|
+
- alpha_2_code: AI
|
19
|
+
alpha_3_code: AIA
|
20
|
+
numeric_code: '660'
|
21
|
+
type: country
|
22
|
+
- alpha_2_code: AL
|
23
|
+
alpha_3_code: ALB
|
24
|
+
numeric_code: '008'
|
25
|
+
type: country
|
26
|
+
- alpha_2_code: AM
|
27
|
+
alpha_3_code: ARM
|
28
|
+
numeric_code: '051'
|
29
|
+
type: country
|
30
|
+
- alpha_2_code: AO
|
31
|
+
alpha_3_code: AGO
|
32
|
+
numeric_code: '024'
|
33
|
+
type: country
|
34
|
+
- alpha_2_code: AQ
|
35
|
+
alpha_3_code: ATA
|
36
|
+
numeric_code: '010'
|
37
|
+
type: country
|
38
|
+
- alpha_2_code: AR
|
39
|
+
alpha_3_code: ARG
|
40
|
+
numeric_code: '032'
|
41
|
+
type: country
|
42
|
+
- alpha_2_code: AS
|
43
|
+
alpha_3_code: ASM
|
44
|
+
numeric_code: '016'
|
45
|
+
type: country
|
46
|
+
- alpha_2_code: AT
|
47
|
+
alpha_3_code: AUT
|
48
|
+
numeric_code: '040'
|
49
|
+
type: country
|
50
|
+
- alpha_2_code: AU
|
51
|
+
alpha_3_code: AUS
|
52
|
+
numeric_code: '036'
|
53
|
+
type: country
|
54
|
+
- alpha_2_code: AW
|
55
|
+
alpha_3_code: ABW
|
56
|
+
numeric_code: '533'
|
57
|
+
type: country
|
58
|
+
- alpha_2_code: AX
|
59
|
+
alpha_3_code: ALA
|
60
|
+
numeric_code: '248'
|
61
|
+
type: country
|
62
|
+
- alpha_2_code: AZ
|
63
|
+
alpha_3_code: AZE
|
64
|
+
numeric_code: '031'
|
65
|
+
type: country
|
66
|
+
- alpha_2_code: BA
|
67
|
+
alpha_3_code: BIH
|
68
|
+
numeric_code: '070'
|
69
|
+
type: country
|
70
|
+
- alpha_2_code: BB
|
71
|
+
alpha_3_code: BRB
|
72
|
+
numeric_code: '052'
|
73
|
+
type: country
|
74
|
+
- alpha_2_code: BD
|
75
|
+
alpha_3_code: BGD
|
76
|
+
numeric_code: '050'
|
77
|
+
type: country
|
78
|
+
- alpha_2_code: BE
|
79
|
+
alpha_3_code: BEL
|
80
|
+
numeric_code: '056'
|
81
|
+
type: country
|
82
|
+
- alpha_2_code: BF
|
83
|
+
alpha_3_code: BFA
|
84
|
+
numeric_code: '854'
|
85
|
+
type: country
|
86
|
+
- alpha_2_code: BG
|
87
|
+
alpha_3_code: BGR
|
88
|
+
numeric_code: '100'
|
89
|
+
type: country
|
90
|
+
- alpha_2_code: BH
|
91
|
+
alpha_3_code: BHR
|
92
|
+
numeric_code: '048'
|
93
|
+
type: country
|
94
|
+
- alpha_2_code: BI
|
95
|
+
alpha_3_code: BDI
|
96
|
+
numeric_code: '108'
|
97
|
+
type: country
|
98
|
+
- alpha_2_code: BJ
|
99
|
+
alpha_3_code: BEN
|
100
|
+
numeric_code: '204'
|
101
|
+
type: country
|
102
|
+
- alpha_2_code: BL
|
103
|
+
alpha_3_code: BLM
|
104
|
+
numeric_code: '652'
|
105
|
+
type: country
|
106
|
+
- alpha_2_code: BM
|
107
|
+
alpha_3_code: BMU
|
108
|
+
numeric_code: '060'
|
109
|
+
type: country
|
110
|
+
- alpha_2_code: BN
|
111
|
+
alpha_3_code: BRN
|
112
|
+
numeric_code: '096'
|
113
|
+
type: country
|
114
|
+
- alpha_2_code: BO
|
115
|
+
alpha_3_code: BOL
|
116
|
+
numeric_code: '068'
|
117
|
+
type: country
|
118
|
+
- alpha_2_code: BQ
|
119
|
+
alpha_3_code: BES
|
120
|
+
numeric_code: '535'
|
121
|
+
type: country
|
122
|
+
- alpha_2_code: BR
|
123
|
+
alpha_3_code: BRA
|
124
|
+
numeric_code: '076'
|
125
|
+
type: country
|
126
|
+
- alpha_2_code: BS
|
127
|
+
alpha_3_code: BHS
|
128
|
+
numeric_code: '044'
|
129
|
+
type: country
|
130
|
+
- alpha_2_code: BT
|
131
|
+
alpha_3_code: BTN
|
132
|
+
numeric_code: '064'
|
133
|
+
type: country
|
134
|
+
- alpha_2_code: BV
|
135
|
+
alpha_3_code: BVT
|
136
|
+
numeric_code: '074'
|
137
|
+
type: country
|
138
|
+
- alpha_2_code: BW
|
139
|
+
alpha_3_code: BWA
|
140
|
+
numeric_code: '072'
|
141
|
+
type: country
|
142
|
+
- alpha_2_code: BY
|
143
|
+
alpha_3_code: BLR
|
144
|
+
numeric_code: '112'
|
145
|
+
type: country
|
146
|
+
- alpha_2_code: BZ
|
147
|
+
alpha_3_code: BLZ
|
148
|
+
numeric_code: '084'
|
149
|
+
type: country
|
150
|
+
- alpha_2_code: CA
|
151
|
+
alpha_3_code: CAN
|
152
|
+
numeric_code: '124'
|
153
|
+
type: country
|
154
|
+
- alpha_2_code: CC
|
155
|
+
alpha_3_code: CCK
|
156
|
+
numeric_code: '166'
|
157
|
+
type: country
|
158
|
+
- alpha_2_code: CD
|
159
|
+
alpha_3_code: COD
|
160
|
+
numeric_code: '180'
|
161
|
+
type: country
|
162
|
+
- alpha_2_code: CF
|
163
|
+
alpha_3_code: CAF
|
164
|
+
numeric_code: '140'
|
165
|
+
type: country
|
166
|
+
- alpha_2_code: CG
|
167
|
+
alpha_3_code: COG
|
168
|
+
numeric_code: '178'
|
169
|
+
type: country
|
170
|
+
- alpha_2_code: CH
|
171
|
+
alpha_3_code: CHE
|
172
|
+
numeric_code: '756'
|
173
|
+
type: country
|
174
|
+
- alpha_2_code: CI
|
175
|
+
alpha_3_code: CIV
|
176
|
+
numeric_code: '384'
|
177
|
+
type: country
|
178
|
+
- alpha_2_code: CK
|
179
|
+
alpha_3_code: COK
|
180
|
+
numeric_code: '184'
|
181
|
+
type: country
|
182
|
+
- alpha_2_code: CL
|
183
|
+
alpha_3_code: CHL
|
184
|
+
numeric_code: '152'
|
185
|
+
type: country
|
186
|
+
- alpha_2_code: CM
|
187
|
+
alpha_3_code: CMR
|
188
|
+
numeric_code: '120'
|
189
|
+
type: country
|
190
|
+
- alpha_2_code: CN
|
191
|
+
alpha_3_code: CHN
|
192
|
+
numeric_code: '156'
|
193
|
+
type: country
|
194
|
+
- alpha_2_code: CO
|
195
|
+
alpha_3_code: COL
|
196
|
+
numeric_code: '170'
|
197
|
+
type: country
|
198
|
+
- alpha_2_code: CR
|
199
|
+
alpha_3_code: CRI
|
200
|
+
numeric_code: '188'
|
201
|
+
type: country
|
202
|
+
- alpha_2_code: CU
|
203
|
+
alpha_3_code: CUB
|
204
|
+
numeric_code: '192'
|
205
|
+
type: country
|
206
|
+
- alpha_2_code: CV
|
207
|
+
alpha_3_code: CPV
|
208
|
+
numeric_code: '132'
|
209
|
+
type: country
|
210
|
+
- alpha_2_code: CW
|
211
|
+
alpha_3_code: CUW
|
212
|
+
numeric_code: '531'
|
213
|
+
type: country
|
214
|
+
- alpha_2_code: CX
|
215
|
+
alpha_3_code: CXR
|
216
|
+
numeric_code: '162'
|
217
|
+
type: country
|
218
|
+
- alpha_2_code: CY
|
219
|
+
alpha_3_code: CYP
|
220
|
+
numeric_code: '196'
|
221
|
+
type: country
|
222
|
+
- alpha_2_code: CZ
|
223
|
+
alpha_3_code: CZE
|
224
|
+
numeric_code: '203'
|
225
|
+
type: country
|
226
|
+
- alpha_2_code: DE
|
227
|
+
alpha_3_code: DEU
|
228
|
+
numeric_code: '276'
|
229
|
+
type: country
|
230
|
+
- alpha_2_code: DJ
|
231
|
+
alpha_3_code: DJI
|
232
|
+
numeric_code: '262'
|
233
|
+
type: country
|
234
|
+
- alpha_2_code: DK
|
235
|
+
alpha_3_code: DNK
|
236
|
+
numeric_code: '208'
|
237
|
+
type: country
|
238
|
+
- alpha_2_code: DM
|
239
|
+
alpha_3_code: DMA
|
240
|
+
numeric_code: '212'
|
241
|
+
type: country
|
242
|
+
- alpha_2_code: DO
|
243
|
+
alpha_3_code: DOM
|
244
|
+
numeric_code: '214'
|
245
|
+
type: country
|
246
|
+
- alpha_2_code: DZ
|
247
|
+
alpha_3_code: DZA
|
248
|
+
numeric_code: '012'
|
249
|
+
type: country
|
250
|
+
- alpha_2_code: EC
|
251
|
+
alpha_3_code: ECU
|
252
|
+
numeric_code: '218'
|
253
|
+
type: country
|
254
|
+
- alpha_2_code: EE
|
255
|
+
alpha_3_code: EST
|
256
|
+
numeric_code: '233'
|
257
|
+
type: country
|
258
|
+
- alpha_2_code: EG
|
259
|
+
alpha_3_code: EGY
|
260
|
+
numeric_code: '818'
|
261
|
+
type: country
|
262
|
+
- alpha_2_code: EH
|
263
|
+
alpha_3_code: ESH
|
264
|
+
numeric_code: '732'
|
265
|
+
type: country
|
266
|
+
- alpha_2_code: ER
|
267
|
+
alpha_3_code: ERI
|
268
|
+
numeric_code: '232'
|
269
|
+
type: country
|
270
|
+
- alpha_2_code: ES
|
271
|
+
alpha_3_code: ESP
|
272
|
+
numeric_code: '724'
|
273
|
+
type: country
|
274
|
+
- alpha_2_code: ET
|
275
|
+
alpha_3_code: ETH
|
276
|
+
numeric_code: '231'
|
277
|
+
type: country
|
278
|
+
- alpha_2_code: FI
|
279
|
+
alpha_3_code: FIN
|
280
|
+
numeric_code: '246'
|
281
|
+
type: country
|
282
|
+
- alpha_2_code: FJ
|
283
|
+
alpha_3_code: FJI
|
284
|
+
numeric_code: '242'
|
285
|
+
type: country
|
286
|
+
- alpha_2_code: FK
|
287
|
+
alpha_3_code: FLK
|
288
|
+
numeric_code: '238'
|
289
|
+
type: country
|
290
|
+
- alpha_2_code: FM
|
291
|
+
alpha_3_code: FSM
|
292
|
+
numeric_code: '583'
|
293
|
+
type: country
|
294
|
+
- alpha_2_code: FO
|
295
|
+
alpha_3_code: FRO
|
296
|
+
numeric_code: '234'
|
297
|
+
type: country
|
298
|
+
- alpha_2_code: FR
|
299
|
+
alpha_3_code: FRA
|
300
|
+
numeric_code: '250'
|
301
|
+
type: country
|
302
|
+
- alpha_2_code: GA
|
303
|
+
alpha_3_code: GAB
|
304
|
+
numeric_code: '266'
|
305
|
+
type: country
|
306
|
+
- alpha_2_code: GB
|
307
|
+
alpha_3_code: GBR
|
308
|
+
numeric_code: '826'
|
309
|
+
type: country
|
310
|
+
- alpha_2_code: GD
|
311
|
+
alpha_3_code: GRD
|
312
|
+
numeric_code: '308'
|
313
|
+
type: country
|
314
|
+
- alpha_2_code: GE
|
315
|
+
alpha_3_code: GEO
|
316
|
+
numeric_code: '268'
|
317
|
+
type: country
|
318
|
+
- alpha_2_code: GF
|
319
|
+
alpha_3_code: GUF
|
320
|
+
numeric_code: '254'
|
321
|
+
type: country
|
322
|
+
- alpha_2_code: GG
|
323
|
+
alpha_3_code: GGY
|
324
|
+
numeric_code: '831'
|
325
|
+
type: country
|
326
|
+
- alpha_2_code: GH
|
327
|
+
alpha_3_code: GHA
|
328
|
+
numeric_code: '288'
|
329
|
+
type: country
|
330
|
+
- alpha_2_code: GI
|
331
|
+
alpha_3_code: GIB
|
332
|
+
numeric_code: '292'
|
333
|
+
type: country
|
334
|
+
- alpha_2_code: GL
|
335
|
+
alpha_3_code: GRL
|
336
|
+
numeric_code: '304'
|
337
|
+
type: country
|
338
|
+
- alpha_2_code: GM
|
339
|
+
alpha_3_code: GMB
|
340
|
+
numeric_code: '270'
|
341
|
+
type: country
|
342
|
+
- alpha_2_code: GN
|
343
|
+
alpha_3_code: GIN
|
344
|
+
numeric_code: '324'
|
345
|
+
type: country
|
346
|
+
- alpha_2_code: GP
|
347
|
+
alpha_3_code: GLP
|
348
|
+
numeric_code: '312'
|
349
|
+
type: country
|
350
|
+
- alpha_2_code: GQ
|
351
|
+
alpha_3_code: GNQ
|
352
|
+
numeric_code: '226'
|
353
|
+
type: country
|
354
|
+
- alpha_2_code: GR
|
355
|
+
alpha_3_code: GRC
|
356
|
+
numeric_code: '300'
|
357
|
+
type: country
|
358
|
+
- alpha_2_code: GS
|
359
|
+
alpha_3_code: SGS
|
360
|
+
numeric_code: '239'
|
361
|
+
type: country
|
362
|
+
- alpha_2_code: GT
|
363
|
+
alpha_3_code: GTM
|
364
|
+
numeric_code: '320'
|
365
|
+
type: country
|
366
|
+
- alpha_2_code: GU
|
367
|
+
alpha_3_code: GUM
|
368
|
+
numeric_code: '316'
|
369
|
+
type: country
|
370
|
+
- alpha_2_code: GW
|
371
|
+
alpha_3_code: GNB
|
372
|
+
numeric_code: '624'
|
373
|
+
type: country
|
374
|
+
- alpha_2_code: GY
|
375
|
+
alpha_3_code: GUY
|
376
|
+
numeric_code: '328'
|
377
|
+
type: country
|
378
|
+
- alpha_2_code: HK
|
379
|
+
alpha_3_code: HKG
|
380
|
+
numeric_code: '344'
|
381
|
+
type: country
|
382
|
+
- alpha_2_code: HM
|
383
|
+
alpha_3_code: HMD
|
384
|
+
numeric_code: '334'
|
385
|
+
type: country
|
386
|
+
- alpha_2_code: HN
|
387
|
+
alpha_3_code: HND
|
388
|
+
numeric_code: '340'
|
389
|
+
type: country
|
390
|
+
- alpha_2_code: HR
|
391
|
+
alpha_3_code: HRV
|
392
|
+
numeric_code: '191'
|
393
|
+
type: country
|
394
|
+
- alpha_2_code: HT
|
395
|
+
alpha_3_code: HTI
|
396
|
+
numeric_code: '332'
|
397
|
+
type: country
|
398
|
+
- alpha_2_code: HU
|
399
|
+
alpha_3_code: HUN
|
400
|
+
numeric_code: '348'
|
401
|
+
type: country
|
402
|
+
- alpha_2_code: ID
|
403
|
+
alpha_3_code: IDN
|
404
|
+
numeric_code: '360'
|
405
|
+
type: country
|
406
|
+
- alpha_2_code: IE
|
407
|
+
alpha_3_code: IRL
|
408
|
+
numeric_code: '372'
|
409
|
+
type: country
|
410
|
+
- alpha_2_code: IL
|
411
|
+
alpha_3_code: ISR
|
412
|
+
numeric_code: '376'
|
413
|
+
type: country
|
414
|
+
- alpha_2_code: IM
|
415
|
+
alpha_3_code: IMN
|
416
|
+
numeric_code: '833'
|
417
|
+
type: country
|
418
|
+
- alpha_2_code: IN
|
419
|
+
alpha_3_code: IND
|
420
|
+
numeric_code: '356'
|
421
|
+
type: country
|
422
|
+
- alpha_2_code: IO
|
423
|
+
alpha_3_code: IOT
|
424
|
+
numeric_code: '086'
|
425
|
+
type: country
|
426
|
+
- alpha_2_code: IQ
|
427
|
+
alpha_3_code: IRQ
|
428
|
+
numeric_code: '368'
|
429
|
+
type: country
|
430
|
+
- alpha_2_code: IR
|
431
|
+
alpha_3_code: IRN
|
432
|
+
numeric_code: '364'
|
433
|
+
type: country
|
434
|
+
- alpha_2_code: IS
|
435
|
+
alpha_3_code: ISL
|
436
|
+
numeric_code: '352'
|
437
|
+
type: country
|
438
|
+
- alpha_2_code: IT
|
439
|
+
alpha_3_code: ITA
|
440
|
+
numeric_code: '380'
|
441
|
+
type: country
|
442
|
+
- alpha_2_code: JE
|
443
|
+
alpha_3_code: JEY
|
444
|
+
numeric_code: '832'
|
445
|
+
type: country
|
446
|
+
- alpha_2_code: JM
|
447
|
+
alpha_3_code: JAM
|
448
|
+
numeric_code: '388'
|
449
|
+
type: country
|
450
|
+
- alpha_2_code: JO
|
451
|
+
alpha_3_code: JOR
|
452
|
+
numeric_code: '400'
|
453
|
+
type: country
|
454
|
+
- alpha_2_code: JP
|
455
|
+
alpha_3_code: JPN
|
456
|
+
numeric_code: '392'
|
457
|
+
type: country
|
458
|
+
- alpha_2_code: KE
|
459
|
+
alpha_3_code: KEN
|
460
|
+
numeric_code: '404'
|
461
|
+
type: country
|
462
|
+
- alpha_2_code: KG
|
463
|
+
alpha_3_code: KGZ
|
464
|
+
numeric_code: '417'
|
465
|
+
type: country
|
466
|
+
- alpha_2_code: KH
|
467
|
+
alpha_3_code: KHM
|
468
|
+
numeric_code: '116'
|
469
|
+
type: country
|
470
|
+
- alpha_2_code: KI
|
471
|
+
alpha_3_code: KIR
|
472
|
+
numeric_code: '296'
|
473
|
+
type: country
|
474
|
+
- alpha_2_code: KM
|
475
|
+
alpha_3_code: COM
|
476
|
+
numeric_code: '174'
|
477
|
+
type: country
|
478
|
+
- alpha_2_code: KN
|
479
|
+
alpha_3_code: KNA
|
480
|
+
numeric_code: '659'
|
481
|
+
type: country
|
482
|
+
- alpha_2_code: KP
|
483
|
+
alpha_3_code: PRK
|
484
|
+
numeric_code: '408'
|
485
|
+
type: country
|
486
|
+
- alpha_2_code: KR
|
487
|
+
alpha_3_code: KOR
|
488
|
+
numeric_code: '410'
|
489
|
+
type: country
|
490
|
+
- alpha_2_code: KW
|
491
|
+
alpha_3_code: KWT
|
492
|
+
numeric_code: '414'
|
493
|
+
type: country
|
494
|
+
- alpha_2_code: KY
|
495
|
+
alpha_3_code: CYM
|
496
|
+
numeric_code: '136'
|
497
|
+
type: country
|
498
|
+
- alpha_2_code: KZ
|
499
|
+
alpha_3_code: KAZ
|
500
|
+
numeric_code: '398'
|
501
|
+
type: country
|
502
|
+
- alpha_2_code: LA
|
503
|
+
alpha_3_code: LAO
|
504
|
+
numeric_code: '418'
|
505
|
+
type: country
|
506
|
+
- alpha_2_code: LB
|
507
|
+
alpha_3_code: LBN
|
508
|
+
numeric_code: '422'
|
509
|
+
type: country
|
510
|
+
- alpha_2_code: LC
|
511
|
+
alpha_3_code: LCA
|
512
|
+
numeric_code: '662'
|
513
|
+
type: country
|
514
|
+
- alpha_2_code: LI
|
515
|
+
alpha_3_code: LIE
|
516
|
+
numeric_code: '438'
|
517
|
+
type: country
|
518
|
+
- alpha_2_code: LK
|
519
|
+
alpha_3_code: LKA
|
520
|
+
numeric_code: '144'
|
521
|
+
type: country
|
522
|
+
- alpha_2_code: LR
|
523
|
+
alpha_3_code: LBR
|
524
|
+
numeric_code: '430'
|
525
|
+
type: country
|
526
|
+
- alpha_2_code: LS
|
527
|
+
alpha_3_code: LSO
|
528
|
+
numeric_code: '426'
|
529
|
+
type: country
|
530
|
+
- alpha_2_code: LT
|
531
|
+
alpha_3_code: LTU
|
532
|
+
numeric_code: '440'
|
533
|
+
type: country
|
534
|
+
- alpha_2_code: LU
|
535
|
+
alpha_3_code: LUX
|
536
|
+
numeric_code: '442'
|
537
|
+
type: country
|
538
|
+
- alpha_2_code: LV
|
539
|
+
alpha_3_code: LVA
|
540
|
+
numeric_code: '428'
|
541
|
+
type: country
|
542
|
+
- alpha_2_code: LY
|
543
|
+
alpha_3_code: LBY
|
544
|
+
numeric_code: '434'
|
545
|
+
type: country
|
546
|
+
- alpha_2_code: MA
|
547
|
+
alpha_3_code: MAR
|
548
|
+
numeric_code: '504'
|
549
|
+
type: country
|
550
|
+
- alpha_2_code: MC
|
551
|
+
alpha_3_code: MCO
|
552
|
+
numeric_code: '492'
|
553
|
+
type: country
|
554
|
+
- alpha_2_code: MD
|
555
|
+
alpha_3_code: MDA
|
556
|
+
numeric_code: '498'
|
557
|
+
type: country
|
558
|
+
- alpha_2_code: ME
|
559
|
+
alpha_3_code: MNE
|
560
|
+
numeric_code: '499'
|
561
|
+
type: country
|
562
|
+
- alpha_2_code: MF
|
563
|
+
alpha_3_code: MAF
|
564
|
+
numeric_code: '663'
|
565
|
+
type: country
|
566
|
+
- alpha_2_code: MG
|
567
|
+
alpha_3_code: MDG
|
568
|
+
numeric_code: '450'
|
569
|
+
type: country
|
570
|
+
- alpha_2_code: MH
|
571
|
+
alpha_3_code: MHL
|
572
|
+
numeric_code: '584'
|
573
|
+
type: country
|
574
|
+
- alpha_2_code: MK
|
575
|
+
alpha_3_code: MKD
|
576
|
+
numeric_code: '807'
|
577
|
+
type: country
|
578
|
+
- alpha_2_code: ML
|
579
|
+
alpha_3_code: MLI
|
580
|
+
numeric_code: '466'
|
581
|
+
type: country
|
582
|
+
- alpha_2_code: MM
|
583
|
+
alpha_3_code: MMR
|
584
|
+
numeric_code: '104'
|
585
|
+
type: country
|
586
|
+
- alpha_2_code: MN
|
587
|
+
alpha_3_code: MNG
|
588
|
+
numeric_code: '496'
|
589
|
+
type: country
|
590
|
+
- alpha_2_code: MO
|
591
|
+
alpha_3_code: MAC
|
592
|
+
numeric_code: '446'
|
593
|
+
type: country
|
594
|
+
- alpha_2_code: MP
|
595
|
+
alpha_3_code: MNP
|
596
|
+
numeric_code: '580'
|
597
|
+
type: country
|
598
|
+
- alpha_2_code: MQ
|
599
|
+
alpha_3_code: MTQ
|
600
|
+
numeric_code: '474'
|
601
|
+
type: country
|
602
|
+
- alpha_2_code: MR
|
603
|
+
alpha_3_code: MRT
|
604
|
+
numeric_code: '478'
|
605
|
+
type: country
|
606
|
+
- alpha_2_code: MS
|
607
|
+
alpha_3_code: MSR
|
608
|
+
numeric_code: '500'
|
609
|
+
type: country
|
610
|
+
- alpha_2_code: MT
|
611
|
+
alpha_3_code: MLT
|
612
|
+
numeric_code: '470'
|
613
|
+
type: country
|
614
|
+
- alpha_2_code: MU
|
615
|
+
alpha_3_code: MUS
|
616
|
+
numeric_code: '480'
|
617
|
+
type: country
|
618
|
+
- alpha_2_code: MV
|
619
|
+
alpha_3_code: MDV
|
620
|
+
numeric_code: '462'
|
621
|
+
type: country
|
622
|
+
- alpha_2_code: MW
|
623
|
+
alpha_3_code: MWI
|
624
|
+
numeric_code: '454'
|
625
|
+
type: country
|
626
|
+
- alpha_2_code: MX
|
627
|
+
alpha_3_code: MEX
|
628
|
+
numeric_code: '484'
|
629
|
+
type: country
|
630
|
+
- alpha_2_code: MY
|
631
|
+
alpha_3_code: MYS
|
632
|
+
numeric_code: '458'
|
633
|
+
type: country
|
634
|
+
- alpha_2_code: MZ
|
635
|
+
alpha_3_code: MOZ
|
636
|
+
numeric_code: '508'
|
637
|
+
type: country
|
638
|
+
- alpha_2_code: NA
|
639
|
+
alpha_3_code: NAM
|
640
|
+
numeric_code: '516'
|
641
|
+
type: country
|
642
|
+
- alpha_2_code: NC
|
643
|
+
alpha_3_code: NCL
|
644
|
+
numeric_code: '540'
|
645
|
+
type: country
|
646
|
+
- alpha_2_code: NE
|
647
|
+
alpha_3_code: NER
|
648
|
+
numeric_code: '562'
|
649
|
+
type: country
|
650
|
+
- alpha_2_code: NF
|
651
|
+
alpha_3_code: NFK
|
652
|
+
numeric_code: '574'
|
653
|
+
type: country
|
654
|
+
- alpha_2_code: NG
|
655
|
+
alpha_3_code: NGA
|
656
|
+
numeric_code: '566'
|
657
|
+
type: country
|
658
|
+
- alpha_2_code: NI
|
659
|
+
alpha_3_code: NIC
|
660
|
+
numeric_code: '558'
|
661
|
+
type: country
|
662
|
+
- alpha_2_code: NL
|
663
|
+
alpha_3_code: NLD
|
664
|
+
numeric_code: '528'
|
665
|
+
type: country
|
666
|
+
- alpha_2_code: 'NO'
|
667
|
+
alpha_3_code: NOR
|
668
|
+
numeric_code: '578'
|
669
|
+
type: country
|
670
|
+
- alpha_2_code: NP
|
671
|
+
alpha_3_code: NPL
|
672
|
+
numeric_code: '524'
|
673
|
+
type: country
|
674
|
+
- alpha_2_code: NR
|
675
|
+
alpha_3_code: NRU
|
676
|
+
numeric_code: '520'
|
677
|
+
type: country
|
678
|
+
- alpha_2_code: NU
|
679
|
+
alpha_3_code: NIU
|
680
|
+
numeric_code: '570'
|
681
|
+
type: country
|
682
|
+
- alpha_2_code: NZ
|
683
|
+
alpha_3_code: NZL
|
684
|
+
numeric_code: '554'
|
685
|
+
type: country
|
686
|
+
- alpha_2_code: OM
|
687
|
+
alpha_3_code: OMN
|
688
|
+
numeric_code: '512'
|
689
|
+
type: country
|
690
|
+
- alpha_2_code: PA
|
691
|
+
alpha_3_code: PAN
|
692
|
+
numeric_code: '591'
|
693
|
+
type: country
|
694
|
+
- alpha_2_code: PE
|
695
|
+
alpha_3_code: PER
|
696
|
+
numeric_code: '604'
|
697
|
+
type: country
|
698
|
+
- alpha_2_code: PF
|
699
|
+
alpha_3_code: PYF
|
700
|
+
numeric_code: '258'
|
701
|
+
type: country
|
702
|
+
- alpha_2_code: PG
|
703
|
+
alpha_3_code: PNG
|
704
|
+
numeric_code: '598'
|
705
|
+
type: country
|
706
|
+
- alpha_2_code: PH
|
707
|
+
alpha_3_code: PHL
|
708
|
+
numeric_code: '608'
|
709
|
+
type: country
|
710
|
+
- alpha_2_code: PK
|
711
|
+
alpha_3_code: PAK
|
712
|
+
numeric_code: '586'
|
713
|
+
type: country
|
714
|
+
- alpha_2_code: PL
|
715
|
+
alpha_3_code: POL
|
716
|
+
numeric_code: '616'
|
717
|
+
type: country
|
718
|
+
- alpha_2_code: PM
|
719
|
+
alpha_3_code: SPM
|
720
|
+
numeric_code: '666'
|
721
|
+
type: country
|
722
|
+
- alpha_2_code: PN
|
723
|
+
alpha_3_code: PCN
|
724
|
+
numeric_code: '612'
|
725
|
+
type: country
|
726
|
+
- alpha_2_code: PR
|
727
|
+
alpha_3_code: PRI
|
728
|
+
numeric_code: '630'
|
729
|
+
type: country
|
730
|
+
- alpha_2_code: PS
|
731
|
+
alpha_3_code: PSE
|
732
|
+
numeric_code: '275'
|
733
|
+
type: country
|
734
|
+
- alpha_2_code: PT
|
735
|
+
alpha_3_code: PRT
|
736
|
+
numeric_code: '620'
|
737
|
+
type: country
|
738
|
+
- alpha_2_code: PW
|
739
|
+
alpha_3_code: PLW
|
740
|
+
numeric_code: '585'
|
741
|
+
type: country
|
742
|
+
- alpha_2_code: PY
|
743
|
+
alpha_3_code: PRY
|
744
|
+
numeric_code: '600'
|
745
|
+
type: country
|
746
|
+
- alpha_2_code: QA
|
747
|
+
alpha_3_code: QAT
|
748
|
+
numeric_code: '634'
|
749
|
+
type: country
|
750
|
+
- alpha_2_code: RE
|
751
|
+
alpha_3_code: REU
|
752
|
+
numeric_code: '638'
|
753
|
+
type: country
|
754
|
+
- alpha_2_code: RO
|
755
|
+
alpha_3_code: ROU
|
756
|
+
numeric_code: '642'
|
757
|
+
type: country
|
758
|
+
- alpha_2_code: RS
|
759
|
+
alpha_3_code: SRB
|
760
|
+
numeric_code: '688'
|
761
|
+
type: country
|
762
|
+
- alpha_2_code: RU
|
763
|
+
alpha_3_code: RUS
|
764
|
+
numeric_code: '643'
|
765
|
+
type: country
|
766
|
+
- alpha_2_code: RW
|
767
|
+
alpha_3_code: RWA
|
768
|
+
numeric_code: '646'
|
769
|
+
type: country
|
770
|
+
- alpha_2_code: SA
|
771
|
+
alpha_3_code: SAU
|
772
|
+
numeric_code: '682'
|
773
|
+
type: country
|
774
|
+
- alpha_2_code: SB
|
775
|
+
alpha_3_code: SLB
|
776
|
+
numeric_code: '090'
|
777
|
+
type: country
|
778
|
+
- alpha_2_code: SC
|
779
|
+
alpha_3_code: SYC
|
780
|
+
numeric_code: '690'
|
781
|
+
type: country
|
782
|
+
- alpha_2_code: SD
|
783
|
+
alpha_3_code: SDN
|
784
|
+
numeric_code: '729'
|
785
|
+
type: country
|
786
|
+
- alpha_2_code: SE
|
787
|
+
alpha_3_code: SWE
|
788
|
+
numeric_code: '752'
|
789
|
+
type: country
|
790
|
+
- alpha_2_code: SG
|
791
|
+
alpha_3_code: SGP
|
792
|
+
numeric_code: '702'
|
793
|
+
type: country
|
794
|
+
- alpha_2_code: SH
|
795
|
+
alpha_3_code: SHN
|
796
|
+
numeric_code: '654'
|
797
|
+
type: country
|
798
|
+
- alpha_2_code: SI
|
799
|
+
alpha_3_code: SVN
|
800
|
+
numeric_code: '705'
|
801
|
+
type: country
|
802
|
+
- alpha_2_code: SJ
|
803
|
+
alpha_3_code: SJM
|
804
|
+
numeric_code: '744'
|
805
|
+
type: country
|
806
|
+
- alpha_2_code: SK
|
807
|
+
alpha_3_code: SVK
|
808
|
+
numeric_code: '703'
|
809
|
+
type: country
|
810
|
+
- alpha_2_code: SL
|
811
|
+
alpha_3_code: SLE
|
812
|
+
numeric_code: '694'
|
813
|
+
type: country
|
814
|
+
- alpha_2_code: SM
|
815
|
+
alpha_3_code: SMR
|
816
|
+
numeric_code: '674'
|
817
|
+
type: country
|
818
|
+
- alpha_2_code: SN
|
819
|
+
alpha_3_code: SEN
|
820
|
+
numeric_code: '686'
|
821
|
+
type: country
|
822
|
+
- alpha_2_code: SO
|
823
|
+
alpha_3_code: SOM
|
824
|
+
numeric_code: '706'
|
825
|
+
type: country
|
826
|
+
- alpha_2_code: SR
|
827
|
+
alpha_3_code: SUR
|
828
|
+
numeric_code: '740'
|
829
|
+
type: country
|
830
|
+
- alpha_2_code: SS
|
831
|
+
alpha_3_code: SSD
|
832
|
+
numeric_code: '728'
|
833
|
+
type: country
|
834
|
+
- alpha_2_code: ST
|
835
|
+
alpha_3_code: STP
|
836
|
+
numeric_code: '678'
|
837
|
+
type: country
|
838
|
+
- alpha_2_code: SV
|
839
|
+
alpha_3_code: SLV
|
840
|
+
numeric_code: '222'
|
841
|
+
type: country
|
842
|
+
- alpha_2_code: SX
|
843
|
+
alpha_3_code: SXM
|
844
|
+
numeric_code: '702'
|
845
|
+
type: country
|
846
|
+
- alpha_2_code: SY
|
847
|
+
alpha_3_code: SYR
|
848
|
+
numeric_code: '760'
|
849
|
+
type: country
|
850
|
+
- alpha_2_code: SZ
|
851
|
+
alpha_3_code: SWZ
|
852
|
+
numeric_code: '748'
|
853
|
+
type: country
|
854
|
+
- alpha_2_code: TC
|
855
|
+
alpha_3_code: TCA
|
856
|
+
numeric_code: '796'
|
857
|
+
type: country
|
858
|
+
- alpha_2_code: TD
|
859
|
+
alpha_3_code: TCD
|
860
|
+
numeric_code: '148'
|
861
|
+
type: country
|
862
|
+
- alpha_2_code: TF
|
863
|
+
alpha_3_code: ATF
|
864
|
+
numeric_code: '260'
|
865
|
+
type: country
|
866
|
+
- alpha_2_code: TG
|
867
|
+
alpha_3_code: TGO
|
868
|
+
numeric_code: '768'
|
869
|
+
type: country
|
870
|
+
- alpha_2_code: TH
|
871
|
+
alpha_3_code: THA
|
872
|
+
numeric_code: '764'
|
873
|
+
type: country
|
874
|
+
- alpha_2_code: TJ
|
875
|
+
alpha_3_code: TJK
|
876
|
+
numeric_code: '762'
|
877
|
+
type: country
|
878
|
+
- alpha_2_code: TK
|
879
|
+
alpha_3_code: TKL
|
880
|
+
numeric_code: '772'
|
881
|
+
type: country
|
882
|
+
- alpha_2_code: TL
|
883
|
+
alpha_3_code: TLS
|
884
|
+
numeric_code: '626'
|
885
|
+
type: country
|
886
|
+
- alpha_2_code: TM
|
887
|
+
alpha_3_code: TKM
|
888
|
+
numeric_code: '795'
|
889
|
+
type: country
|
890
|
+
- alpha_2_code: TN
|
891
|
+
alpha_3_code: TUN
|
892
|
+
numeric_code: '788'
|
893
|
+
type: country
|
894
|
+
- alpha_2_code: TO
|
895
|
+
alpha_3_code: TON
|
896
|
+
numeric_code: '776'
|
897
|
+
type: country
|
898
|
+
- alpha_2_code: TR
|
899
|
+
alpha_3_code: TUR
|
900
|
+
numeric_code: '792'
|
901
|
+
type: country
|
902
|
+
- alpha_2_code: TT
|
903
|
+
alpha_3_code: TTO
|
904
|
+
numeric_code: '780'
|
905
|
+
type: country
|
906
|
+
- alpha_2_code: TV
|
907
|
+
alpha_3_code: TUV
|
908
|
+
numeric_code: '798'
|
909
|
+
type: country
|
910
|
+
- alpha_2_code: TW
|
911
|
+
alpha_3_code: TWN
|
912
|
+
numeric_code: '158'
|
913
|
+
type: country
|
914
|
+
- alpha_2_code: TZ
|
915
|
+
alpha_3_code: TZA
|
916
|
+
numeric_code: '834'
|
917
|
+
type: country
|
918
|
+
- alpha_2_code: UA
|
919
|
+
alpha_3_code: UKR
|
920
|
+
numeric_code: '804'
|
921
|
+
type: country
|
922
|
+
- alpha_2_code: UG
|
923
|
+
alpha_3_code: UGA
|
924
|
+
numeric_code: '800'
|
925
|
+
type: country
|
926
|
+
- alpha_2_code: UM
|
927
|
+
alpha_3_code: UMI
|
928
|
+
numeric_code: '581'
|
929
|
+
type: country
|
930
|
+
- alpha_2_code: US
|
931
|
+
alpha_3_code: USA
|
932
|
+
numeric_code: '840'
|
933
|
+
type: country
|
934
|
+
- alpha_2_code: UY
|
935
|
+
alpha_3_code: URY
|
936
|
+
numeric_code: '858'
|
937
|
+
type: country
|
938
|
+
- alpha_2_code: UZ
|
939
|
+
alpha_3_code: UZB
|
940
|
+
numeric_code: '860'
|
941
|
+
type: country
|
942
|
+
- alpha_2_code: VA
|
943
|
+
alpha_3_code: VAT
|
944
|
+
numeric_code: '336'
|
945
|
+
type: country
|
946
|
+
- alpha_2_code: VC
|
947
|
+
alpha_3_code: VCT
|
948
|
+
numeric_code: '670'
|
949
|
+
type: country
|
950
|
+
- alpha_2_code: VE
|
951
|
+
alpha_3_code: VEN
|
952
|
+
numeric_code: '862'
|
953
|
+
type: country
|
954
|
+
- alpha_2_code: VG
|
955
|
+
alpha_3_code: VGB
|
956
|
+
numeric_code: '092'
|
957
|
+
type: country
|
958
|
+
- alpha_2_code: VI
|
959
|
+
alpha_3_code: VIR
|
960
|
+
numeric_code: '850'
|
961
|
+
type: country
|
962
|
+
- alpha_2_code: VN
|
963
|
+
alpha_3_code: VNM
|
964
|
+
numeric_code: '704'
|
965
|
+
type: country
|
966
|
+
- alpha_2_code: VU
|
967
|
+
alpha_3_code: VUT
|
968
|
+
numeric_code: '548'
|
969
|
+
type: country
|
970
|
+
- alpha_2_code: WF
|
971
|
+
alpha_3_code: WLF
|
972
|
+
numeric_code: '876'
|
973
|
+
type: country
|
974
|
+
- alpha_2_code: WS
|
975
|
+
alpha_3_code: WSM
|
976
|
+
numeric_code: '882'
|
977
|
+
type: country
|
978
|
+
- alpha_2_code: YE
|
979
|
+
alpha_3_code: YEM
|
980
|
+
numeric_code: '887'
|
981
|
+
type: country
|
982
|
+
- alpha_2_code: YT
|
983
|
+
alpha_3_code: MYT
|
984
|
+
numeric_code: '175'
|
985
|
+
type: country
|
986
|
+
- alpha_2_code: ZA
|
987
|
+
alpha_3_code: ZAF
|
988
|
+
numeric_code: '710'
|
989
|
+
type: country
|
990
|
+
- alpha_2_code: ZM
|
991
|
+
alpha_3_code: ZMB
|
992
|
+
numeric_code: '894'
|
993
|
+
type: country
|
994
|
+
- alpha_2_code: ZW
|
995
|
+
alpha_3_code: ZWE
|
996
|
+
numeric_code: '716'
|
997
|
+
type: country
|