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