Class: IsoCode::Iso639
Overview
This class gives a list of all languages in the ISO 639-3 standard, and is used to provide translations in various languages
The translations and files are taken from the Debian iso-codes project (alioth.debian.org/projects/pkg-isocodes/)
Instance Attribute Summary
Attributes inherited from Base
#basexml, #dataset, #fileurl, #locales, #pofiles
Instance Method Summary collapse
-
#initialize(*locales) ⇒ Iso639
constructor
A new instance of Iso639.
Methods inherited from Base
Constructor Details
#initialize(*locales) ⇒ Iso639
Returns a new instance of Iso639.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/iso_code/iso639.rb', line 12 def initialize(*locales) @locales = locales @dataset = {} @basexml = 'http://anonscm.debian.org/gitweb/?p=iso-codes/iso-codes.git;a=blob_plain;f=iso_639_3/iso_639_3.xml;hb=HEAD' @fileurl = 'http://anonscm.debian.org/gitweb/?p=iso-codes/iso-codes.git;a=blob_plain;f=iso_639_3/%s.po;hb=HEAD' @pofiles = [ :af, :am, :ar, :az, :bg, :bn_IN, :br, :bs, :byn, :ca, :crh, :cs, :cy, :da, :de, :el, :eo, :es, :et, :eu, :fa, :fi, :fr, :ga, :gez, :gl, :gu, :he, :hi, :hr, :hu, :id, :is, :it, :ja, :kn, :ko, :kok, :lt, :lv, :mi, :mk, :mn, :mr, :ms, :mt, :nb, :nl, :nn, :nso, :oc, :or, :pa, :pl, :ps, :pt, :pt_BR, :ro, :ru, :rw, :sk, :sl, :sr, :sv, :ta, :th, :ti, :tig, :tr, :tt, :uk, :ve, :vi, :wa, :xh, :zh_CN, :zh_TW, :zu ] end |