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

Locale::Maketext::Lexicon::Msgcat - Msgcat catalog parser Maketext

Authors

       •   Clinton Gormley <drtech@cpan.org>

       •   Audrey Tang <cpan@audreyt.org>

Description

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

Name

       Locale::Maketext::Lexicon::Msgcat - Msgcat catalog parser Maketext

Notes

       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.

See Also

       Locale::Maketext, Locale::Maketext::Lexicon

Synopsis

           package Hello::I18N;
           use base 'Locale::Maketext';
           use Locale::Maketext::Lexicon {
               en => ['Msgcat', 'en_US/hello.pl.m'],
           };

           package main;
           my $lh = Hello::I18N->get_handle('en');
           print $lh->maketext(1,2);   # set 1, msg 2
           print $lh->maketext("1,2"); # same thing

Version

       version 1.00

See Also