Option | Default |
---|---|
name |
|
Returns the catalog name. When not specified at initiation, the value will be set by the first catalog file read. You are not permitted to change the value.
Add information about one message-id to the object. The structure of the data is determined by the 'message' type in the XML-Schema, and is already validated.
Returns a list of application specific data. A list of HASHes is returned, which contain the data related to the selected application, extended with a link to the message structure.
Option | Default |
---|---|
application | 'ALL' |
as | 'ALL' |
language | 'ALL' |
mime | 'ALL' |
my $reports = $catalog->find ( application => 'log-report,website' , as => 'short' );
Returns all defined messages, as list.
Process all files with .xml
extension which are found in the named
DIRECTORIES. They will be read via Text::Catalog::StoreXML. You can
also specify FILENAMES to be processed. The names may be relative paths.
Other formats may get implemented in the future, so better not to mix other files in the same directories.
$catalog->read('shared/catalog/mine', 'example.xml');