Sha256: cbc9c12a0287ddc2017d7cc62dfca834643db059a3d5e9056edb2af5b9b08fe3
Contents?: true
Size: 406 Bytes
Versions: 28
Compression:
Stored size: 406 Bytes
Contents
module IsoDoc module Iec class I18n < IsoDoc::Iso::I18n def load_file(fname) f = File.join(File.dirname(__FILE__), fname) File.exist?(f) ? YAML.load_file(f) : {} end def load_yaml1(lang, script) y = load_file("i18n-#{yaml_lang(lang, script)}.yaml") y.empty? ? load_file("i18n-en.yaml").merge(super) : super.deep_merge(y) end end end end
Version data entries
28 entries across 28 versions & 1 rubygems