1Locale::Maketext::LexicUosne:r:MCsognctarti(b3u)ted PerlLoDcoacluem:e:nMtaakteitoenxt::Lexicon::Msgcat(3)
2
3
4
6 Locale::Maketext::Lexicon::Msgcat - Msgcat catalog parser Maketext
7
9 version 1.00
10
12 package Hello::I18N;
13 use base 'Locale::Maketext';
14 use Locale::Maketext::Lexicon {
15 en => ['Msgcat', 'en_US/hello.pl.m'],
16 };
17
18 package main;
19 my $lh = Hello::I18N->get_handle('en');
20 print $lh->maketext(1,2); # set 1, msg 2
21 print $lh->maketext("1,2"); # same thing
22
24 This module parses one or more Msgcat catalogs in plain text format,
25 and returns a Lexicon hash, which may be looked up either with a two-
26 argument form ("$set_id, $msg_id") or as a single string
27 ("$set_id,$msg_id").
28
30 All special characters ("[", "]" and "~") in catalogs will be escaped
31 so they lose their magic meanings. That means "->maketext" calls to
32 this lexicon will not take any additional arguments.
33
35 Locale::Maketext, Locale::Maketext::Lexicon
36
38 Audrey Tang <cpan@audreyt.org>
39
41 Copyright 2002-2013 by Audrey Tang <cpan@audreyt.org>.
42
43 This software is released under the MIT license cited below.
44
45 The "MIT" License
46 Permission is hereby granted, free of charge, to any person obtaining a
47 copy of this software and associated documentation files (the
48 "Software"), to deal in the Software without restriction, including
49 without limitation the rights to use, copy, modify, merge, publish,
50 distribute, sublicense, and/or sell copies of the Software, and to
51 permit persons to whom the Software is furnished to do so, subject to
52 the following conditions:
53
54 The above copyright notice and this permission notice shall be included
55 in all copies or substantial portions of the Software.
56
57 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
58 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
60 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
61 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
62 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
63 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
64
66 • Clinton Gormley <drtech@cpan.org>
67
68 • Audrey Tang <cpan@audreyt.org>
69
71 This software is Copyright (c) 2014 by Audrey Tang.
72
73 This is free software, licensed under:
74
75 The MIT (X11) License
76
77
78
79perl v5.32.1 2021-01-2L7ocale::Maketext::Lexicon::Msgcat(3)