Locale::Maketext::Lexicon::Msgcat - Msgcat catalog parser Maketext
package Hello::L10N; use base 'Locale::Maketext'; use Locale::Maketext::Lexicon { en => ['Msgcat', 'en_US/hello.pl.m'], }; package main; my $lh = Hello::L10N->get_handle('en'); print $lh->maketext(1,2); # set 1, msg 2 print $lh->maketext("1,2"); # same thing
This module parses one or more Msgcat catalogs in plain text format, and returns a Lexicon hash, which may be looked up either with a two-argument form ($set_id, $msg_id) or as a single string ("$set_id,$msg_id").
$set_id, $msg_id
"$set_id,$msg_id"
All special characters ([, ] and ~) in catalogs will be escaped so they lose their magic meanings. That means ->maketext calls to this lexicon will not take any additional arguments.
[
]
~
->maketext
Locale::Maketext, Locale::Maketext::Lexicon
Autrijus Tang <autrijus@autrijus.org>
Copyright 2002 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Locale::Maketext::Lexicon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Maketext::Lexicon
CPAN shell
perl -MCPAN -e shell install Locale::Maketext::Lexicon
For more information on module installation, please visit the detailed CPAN module installation guide.