1MooX::Locale::TextDomaiUns:e:rOOC(o3n)tributed Perl DocuMmoeonXt:a:tLioocnale::TextDomain::OO(3)
2
3
4
6 MooX::Locale::TextDomain::OO - provide API used in translator modules
7 without translating
8
10 { package WonderBar;
11 use Moo;
12 with "MooX::Locale::TextDomain::OO";
13
14 sub tell_me { my $self = shift; $self->__("Hello world"); }
15 }
16
17 WonderBar->new->tell_me;
18
20 "MooX::Locale::TextDomain::OO"
21
23 __ MSGID
24 returns translation for MSGID
25
26 __n MSGID, MSGID_PLURAL, COUNT
27 returns translation for MSGID when count is equal 1, translation for
28 MSGID_PLURAL otherwise
29
30 __p MSGCTXT, MSGID
31 returns translation for MSGID in MSGCTXT context
32
34 Jens Rehsack, "<rehsack at cpan.org>"
35
37 Please report any bugs or feature requests to
38 "bug-MooX-Locale-TextDomain-OO at rt.cpan.org", or through the web
39 interface at
40 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooX-Locale-TextDomain-OO>.
41 I will be notified, and then you'll automatically be notified of
42 progress on your bug as I make changes.
43
45 You can find documentation for this module with the perldoc command.
46
47 perldoc MooX::Locale::TextDomain::OO
48
49 You can also look for information at:
50
51 • RT: CPAN's request tracker
52
53 <http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Locale-TextDomain-OO>
54
55 • AnnoCPAN: Annotated CPAN documentation
56
57 <http://annocpan.org/dist/MooX-Locale-TextDomain-OO>
58
59 • CPAN Ratings
60
61 <http://cpanratings.perl.org/m/MooX-Locale-TextDomain-OO>
62
63 • Search CPAN
64
65 <http://search.cpan.org/dist/MooX-Locale-TextDomain-OO/>
66
68 Copyright 2017 Jens Rehsack.
69
70 This program is free software; you can redistribute it and/or modify it
71 under the terms of either: the GNU General Public License as published
72 by the Free Software Foundation; or the Artistic License.
73
74 See http://dev.perl.org/licenses/ for more information.
75
76
77
78perl v5.38.0 2023-07-20 MooX::Locale::TextDomain::OO(3)