Log::Report::Lexicon::MOTcompact(3pm) | User Contributed Perl Documentation | Log::Report::Lexicon::MOTcompact(3pm) |
Log::Report::Lexicon::MOTcompact - use translations from an MO file
Log::Report::Lexicon::MOTcompact is a Log::Report::Lexicon::Table
# using a MO table efficiently my $mot = Log::Report::Lexicon::MOTcompact->read('mo/nl.mo') or die; my $header = $mot->msgid(''); print $mot->msgstr($msgid, 3);
This module is translating, based on MO files (binary versions of the PO files, the "Machine Object" format)
Actually, this module is not "compact" anymore: not trading off speed for memory. That may change again in the future.
To get a MO file, you first need a PO file. Then run msgfmt, which is part of the gnu gettext package.
msgfmt -cv -o $domain.mo $domain.po # -c = --check-format & --check-header & --check-domain # -v = --verbose # -o = --output-file
Extends "DESCRIPTION" in Log::Report::Lexicon::Table.
Extends "METHODS" in Log::Report::Lexicon::Table.
Extends "Constructors" in Log::Report::Lexicon::Table.
-Option --Default charset <from header>
Extends "Attributes" in Log::Report::Lexicon::Table.
Extends "Managing PO's" in Log::Report::Lexicon::Table.
Translation
Extends "Translation" in Log::Report::Lexicon::Table.
Administration
Extends "Administration" in Log::Report::Lexicon::Table.
This module is part of Log-Report-Lexicon distribution version 1.11, built on March 22, 2018. Website: http://perl.overmeer.net/CPAN/
Copyrights 2007-2018 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/
2022-12-06 | perl v5.36.0 |