# internal use my $msg = Log::Report::Message->new ( _msgid => "Hello World\n" , _domain => 'my-domain' ); print Log::Report::Translator::POT ->new(lexicon => ...) ->translate($msg, 'nl-BE'); # normal use (end-users view) use Log::Report 'my-domain' , translator => Log::Report::Translator::POT->new; print __"Hello World\n";
See SYNOPSIS in Log::Report::Translator
Translate a message by directly accessing POT files. The files will load lazily (unless forced). This module accesses the PO's in a compact way, using Log::Report::Lexicon::POTcompact, which is much more efficient than Log::Report::Lexicon::PO.