![]() |
![]()
| ![]() |
![]()
NAMELog::Report::Translator - base implementation for translating messages INHERITANCELog::Report::Translator is extended by Log::Report::Translator::Gettext Log::Report::Translator::POT SYNOPSIS# internal infrastructure my $msg = Log::Report::Message->new(_msgid => "Hello World\n"); print Log::Report::Translator->new(...)->translate($msg); # normal use textdomain 'my-domain' , translator => Log::Report::Translator->new; # default print __"Hello World\n"; DESCRIPTIONA module (or distribution) has a certain way of translating messages, usually "gettext". The translator is based on some "textdomain" for the message, which can be specified as option per text element, but usually is package scoped. This base class does not translate at all: it will use the MSGID (and MSGID_PLURAL if available). It's a nice fallback if the language packs are not installed. METHODSConstructorsAccessorsTranslating
SEE ALSOThis module is part of Log-Report distribution version 1.40, built on April 18, 2025. Website: http://perl.overmeer.net/CPAN/ LICENSECopyrights 2007-2025 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
|