METHODS

Constructors

$class->new( %options )
Option Defined in Default

lexicon

undef

name

Log::Report::Minimal::Domain

<required>

only_in_directory

undef

translation_function

'loc'

lexicon => DIRECTORY
name => STRING
only_in_directory => DIRECTORY|ARRAY
The textdomain can only be used in the indicated directories: if found anywhere else, it's an error. When not specified, the function is allowed everywhere.
translation_function => STRING
The name of the function as used in the template to call for translation. See function(). It must be unique over all text-domains used.

Attributes

$obj->configure( %options )
See configure in Log::Report::Domain.
$obj->contextRules
See contextRules in Log::Report::Domain.
$obj->defaultContext
See defaultContext in Log::Report::Domain.
$obj->isConfigured
See isConfigured in Log::Report::Minimal::Domain.
$obj->name
See name in Log::Report::Minimal::Domain.
$obj->nativeLanguage
See nativeLanguage in Log::Report::Domain.
$obj->readConfig( $filename )
$class->readConfig( $filename )
See readConfig in Log::Report::Domain.
$obj->setContext( STRING|HASH|ARRAY|PAIRS )
See setContext in Log::Report::Domain.
$obj->translator
See translator in Log::Report::Domain.
$obj->updateContext( STRING|HASH|ARRAY|PAIRS )
See updateContext in Log::Report::Domain.

Action

$class->interpolate( $msgid, [$args] )
See interpolate in Log::Report::Minimal::Domain.
$obj->translate( $message, $language )
See translate in Log::Report::Domain.

Accessors

$obj->expectedIn( $filename )

Return true when the function name which relates to this domain is allowed to be used for the indicated file. The msgid extractor will warn when there is no match.

$obj->function

Returns the name of the function which is used for translations.

$obj->lexicon

Directory where the translation tables are kept.

Translating

$obj->translationFunction

This method returns a CODE which is able to handle a call for translation by Template Toolkit.

=encoding utf-8