class Translatomatic::ResourceFile::PO::PoProperty

used to index into PO msgstr[] @private

Attributes

entry[R]
msgstr_index[R]

Public Class Methods

new(entry, msgstr_index) click to toggle source
# File lib/translatomatic/resource_file/po.rb, line 60
def initialize(entry, msgstr_index)
  @entry = entry
  @msgstr_index = msgstr_index
end

Public Instance Methods

value() click to toggle source
# File lib/translatomatic/resource_file/po.rb, line 65
def value
  if entry.plural?
    entry.msgstr[msgstr_index]
  else
    entry.msgstr
  end
end