METHODS

Constructors

$class->new( OPTIONS )

Attributes

Managing PO's

Translation

$obj->msgid( STRING, [MSGCTXT] )

Lookup the Log::Report::Lexicon::PO with the STRING. Returns undef when not defined.

$obj->msgstr( MSGID, [COUNT, MSGCTXT] )

Returns the translated string for MSGID. When not specified, COUNT is 1.

Administration

$obj->add( PO )

Add the information from a PO into this POT. If the msgid of the PO is already known, that is an error.

$obj->nrPlurals

Returns the number of plurals, when not known then '2'.

$obj->pluralIndex( COUNT )

Returns the msgstr index used to translate a value of COUNT.

$obj->setupPluralAlgorithm

This method needs to be called after setting (reading or creating) a new table header, to interpret the plural algorithm as specified in the Plural-Forms header field.

$obj->translations( [ACTIVE] )

Returns a list with all defined Log::Report::Lexicon::PO objects. When the string ACTIVE is given as parameter, only objects which have references are returned.

» Error: only acceptable parameter is 'ACTIVE'