Class: IsoDoc::IEEE::I18n
- Inherits:
-
IsoDoc::I18n
- Object
- IsoDoc::I18n
- IsoDoc::IEEE::I18n
- Defined in:
- lib/isodoc/ieee/i18n.rb
Instance Method Summary collapse
Instance Method Details
#load_yaml1(lang, script) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/isodoc/ieee/i18n.rb', line 9 def load_yaml1(lang, script) y = case lang when "en" load_yaml2x(lang) else load_yaml2x("en") end super.deep_merge(y) end |
#load_yaml2x(str) ⇒ Object
4 5 6 7 |
# File 'lib/isodoc/ieee/i18n.rb', line 4 def load_yaml2x(str) ::YAML.load_file(File.join(File.dirname(__FILE__), "i18n-#{str}.yaml")) end |