/usr/share/perl5/Log/Report/Translator/POT.pod is in liblog-report-perl 0.998-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | =encoding utf8
=head1 NAME
Log::Report::Translator::POT - translation based on POT files
=head1 INHERITANCE
Log::Report::Translator::POT
is a Log::Report::Translator
=head1 SYNOPSIS
# 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";
=head1 DESCRIPTION
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 L<Log::Report::Lexicon::POTcompact|Log::Report::Lexicon::POTcompact>, which is much more efficient
than L<Log::Report::Lexicon::PO|Log::Report::Lexicon::PO>.
See L<documentation in the base class|Log::Report::Translator/"DESCRIPTION">.
=head1 METHODS
See L<documentation in the base class|Log::Report::Translator/"METHODS">.
=head2 Constructors
See L<documentation in the base class|Log::Report::Translator/"Constructors">.
=over 4
=item Log::Report::Translator::POT-E<gt>B<new>(OPTIONS)
-Option --Defined in --Default
charset Log::Report::Translator <from locale>
lexicons Log::Report::Translator <see text>
=over 2
=item charset => STRING
=item lexicons => DIRECTORY|ARRAY-of-DIRECTORYs
=back
=back
=head2 Accessors
See L<documentation in the base class|Log::Report::Translator/"Accessors">.
=over 4
=item $obj-E<gt>B<charset>()
See L<Log::Report::Translator/"Accessors">
=item $obj-E<gt>B<lexicons>()
See L<Log::Report::Translator/"Accessors">
=back
=head2 Translating
See L<documentation in the base class|Log::Report::Translator/"Translating">.
=over 4
=item $obj-E<gt>B<load>(DOMAIN, LOCALE)
See L<Log::Report::Translator/"Translating">
=item $obj-E<gt>B<translate>(MESSAGE, [LANGUAGE])
See L<Log::Report::Translator/"Translating">
=back
=head1 SEE ALSO
This module is part of Log-Report distribution version 0.998,
built on October 22, 2013. Website: F<http://perl.overmeer.net/log-report/>
=head1 LICENSE
Copyrights 2007-2013 by [Mark Overmeer]. 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 F<http://www.perl.com/perl/misc/Artistic.html>
|