Sha256: 648f6894ddc058ebc890cf84323dc3fe80e38f405e8bb2801e16ba0b93806749

Contents?: true

Size: 429 Bytes

Versions: 24

Compression:

Stored size: 429 Bytes

Contents

module IsoDoc
  module IEEE
    class I18n < IsoDoc::I18n
      def load_yaml2x(str)
        ::YAML.load_file(File.join(File.dirname(__FILE__),
                                   "i18n-#{str}.yaml"))
      end

      def load_yaml1(lang, script)
        y = case lang
            when "en"
              load_yaml2x(lang)
            else load_yaml2x("en")
            end
        super.deep_merge(y)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
metanorma-ieee-1.1.7 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.1.6 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.1.5 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.1.4 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.1.3 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.1.2 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.1.1 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.1.0 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.15 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.14 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.13 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.12 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.11 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.10 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.9 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.8 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.7 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.6 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.5 lib/isodoc/ieee/i18n.rb
metanorma-ieee-1.0.4 lib/isodoc/ieee/i18n.rb