Sha256: e3f3476bbf7b390382c0728c8d0a7be58055fa440d25ae9b4c253ded924ee37c
Contents?: true
Size: 630 Bytes
Versions: 12
Compression:
Stored size: 630 Bytes
Contents
require 'fast_gettext/mo_file' module FastGettext # Responsibility: # - abstract po files for Po Repository 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
12 entries across 12 versions & 1 rubygems