Sha256: 7e72acbd985e095d12915a63ad5e7ab8613970c718570b2adf3c6fea1e519c19
Contents?: true
Size: 584 Bytes
Versions: 9
Compression:
Stored size: 584 Bytes
Contents
module IsoDoc module Iso class I18n < IsoDoc::I18n def load_file(fname) YAML.load_file(File.join(File.dirname(__FILE__), fname)) end def load_yaml1(lang, script) y = if lang == "en" then load_file("i18n-en.yaml") elsif lang == "fr" then load_file("i18n-fr.yaml") elsif lang == "ru" then load_file("i18n-ru.yaml") elsif lang == "zh" && script == "Hans" load_file("i18n-zh-Hans.yaml") else load_file("i18n-en.yaml") end super.merge(y) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems