Create a new POT file. The initial header is generated for you, but it can be changed using the header() method.
Option | Default |
---|---|
charset | <required> |
date | now |
filename |
|
index | {} |
nr_plurals | 2 |
plural_alg |
|
plural_forms | <constructed from nr_plurals and plural_alg> |
textdomain | <required> |
version |
|
Read the POT information from FILENAME.
Option | Default |
---|---|
charset | <required> |
When you pass an open FILEHANDLE, you are yourself responsible that the correct character-encoding (binmode) is set. When the write followed a read() or the filename was explicitly set with filename(), then you may omit the first parameter.
When a PO file is written, then a filename or file-handle must be specified explicitly, or set beforehand using the filename() method, or known because the write follows a read() of the file.
The character-set to be used for reading and writing. You do not need to be aware of Perl's internal encoding for the characters.
Returns the FILENAME, as derived from read() or specified during initiation with new(filename).
Returns the language code, which is derived from the filename.
Remove all references which are not found as key in the hash TABLE. Returns the number of references left.
Remove all the references to the indicate FILENAME from all defined translations. Returns the number of refs left.
Returns a HASH with some statistics about this POT table.
Replace the "PO-Revision-Date" with the specified DATE, or the current moment.
Lookup the Log::Report::Lexicon::PO with the STRING. If you
want to add a new translation, use add(). Returns undef
when not defined.
Returns the translated string for MSGID. When COUNT is not specified or
undef
, the translation string related to "1" is returned.
Add the information from a PO into this POT. If the msgid of the PO is already known, that is an error.
The translation of a blank MSGID is used to store a MIME header, which
contains some meta-data. When only a FIELD is specified, that content is
looked-up (case-insensitive) and returned. When a CONTENT is specified,
the knowledge will be stored. In latter case, the header structure
may get created. When the CONTENT is set to undef
, the field will
be removed.
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.