Zonemaster::Engine::Translator - translation support for Zonemaster
my $trans = Zonemaster::Engine::Translator->new({ locale => 'sv_SE.UTF-8' }); say $trans->to_string($entry);
The locale that should be used to find translation data. If not explicitly provided, defaults to (in order) the contents of the environment variable LANG, LC_ALL, LC_MESSAGES or, if none of them are set, to en_US.UTF-8.
en_US.UTF-8
A reference to a hash with translation data. This is unlikely to be useful to end-users.
Takes a Zonemaster::Engine::Logger::Entry object as its argument and returns a translated string with the timestamp, level, message and arguments in the entry.
Takes a Zonemaster::Engine::Logger::Entry object as its argument and returns a translation of its tag and arguments.
Internal method that's only mentioned here to placate Pod::Coverage.
To install Zonemaster::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zonemaster::Engine
CPAN shell
perl -MCPAN -e shell install Zonemaster::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.