Class: FastGettext::PoFile

Inherits:
MoFile
  • Object
show all
Defined in:
lib/fast_gettext/po_file.rb

Overview

Responsibility:

- abstract po files for Po Repository

Constant Summary

Constants inherited from MoFile

MoFile::PLURAL_SEPERATOR

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MoFile

#[], #data, empty, #plural, #pluralisation_rule

Constructor Details

#initialize(file, options = {}) ⇒ PoFile

Returns a new instance of PoFile.



6
7
8
9
# File 'lib/fast_gettext/po_file.rb', line 6

def initialize(file, options={})
  @options = options
  super
end

Class Method Details

.to_mo_file(file, options = {}) ⇒ Object



11
12
13
# File 'lib/fast_gettext/po_file.rb', line 11

def self.to_mo_file(file, options={})
  MoFile.new(parse_po_file(file, options))
end