logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Zonemaster::Translator - translation support for Zonemaster

Attributes

       locale
           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".

       data
           A reference to a hash with translation data. This is unlikely to be useful to end-users.

Methods

       to_string($entry)
           Takes  a  Zonemaster::Logger::Entry  object  as its argument and returns a translated string with the
           timestamp, level, message and arguments in the entry.

       translate_tag
           Takes a Zonemaster::Logger::Entry object as its argument and returns a translation  of  its  tag  and
           arguments.

       BUILD
           Internal method that's only mentioned here to placate Pod::Coverage.

perl v5.32.0                                       2021-01-06                        Zonemaster::Translator(3pm)

Name

       Zonemaster::Translator - translation support for Zonemaster

Synopsis

           my $trans = Zonemaster::Translator->new({ locale => 'sv_SE.UTF-8' });
           say $trans->to_string($entry);

See Also