Class | GetText::POEntry |
In: |
lib/gettext/po_entry.rb
lib/gettext/tools/parser/ruby.rb |
Parent: | Object |
Contains data related to the expression or sentence that is to be translated.
PARAMS | = | { :normal => [:msgid, :separator, :msgstr], :plural => [:msgid, :msgid_plural, :separator, :msgstr], :msgctxt => [:msgctxt, :msgid, :msgstr], :msgctxt_plural => [:msgctxt, :msgid, :msgid_plural, :msgstr] |
initialize | -> | initialize_old |
comment | [RW] | |
extracted_comment | [RW] | |
flags | [RW] | @return [Array<String>] The flags for this PO entry. @since 3.0.4 |
msgctxt | [RW] | |
msgid | [RW] | |
msgid_plural | [RW] | Options |
msgstr | [RW] | |
previous | [RW] | |
references | [RW] | |
separator | [RW] | |
translator_comment | [RW] | |
type | [R] | Required |
Support for extracted comments. Explanation s. www.gnu.org/software/gettext/manual/gettext.html#Names @return [void]
@return true if the entry is header entry, false otherwise.
Header entry is normal type and has empty msgid.
Merges two translation targets with the same msgid and returns the merged result. If one is declared as plural and the other not, then the one with the plural wins.
Checks if the other translation target is mergeable with the current one. Relevant are msgid and translation context (msgctxt).
@return true if the entry is obsolete entry, false otherwise.
Obsolete entry is normal type and has :last msgid.
Format the po entry in PO format.
@param [Hash] options @option options (see Formatter#initialize)