Sha256: 265691bdb895c3b769653824ab819fb1e61d7ff50efcefb0f54b3b445b348ca7
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
require 'fast_gettext/mo_file' module FastGettext # Responsibility: # - abstract po files for Po Repository # TODO refactor... class PoFile def self.to_mo_file(file, options={}) require 'fast_gettext/vendor/poparser' parser = FastGettext::GetText::PoParser.new warn ":ignore_obsolete is no longer supported, use :report_warning" if options.key? :ignore_obsolete parser.ignore_fuzzy = options[:ignore_fuzzy] parser.report_warning = options.fetch(:report_warning, true) mo_file = FastGettext::GetText::MOFile.new parser.parse(File.read(file), mo_file) MoFile.new(mo_file) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fast_gettext-0.6.8 | lib/fast_gettext/po_file.rb |