1MooX::Locale::PassthrouUgshe(r3)Contributed Perl DocumenMtoaotXi:o:nLocale::Passthrough(3)
2
3
4

NAME

6       MooX::Locale::Passthrough - provide API used in translator modules
7       without translating
8

SYNOPSIS

10         { package WonderBar;
11           use Moo;
12           with "MooX::Locale::Passthrough";
13
14           sub tell_me { my $self = shift; $self->__("Hello world"); }
15         }
16
17         WonderBar->new->tell_me;
18

DESCRIPTION

20       "MooX::Locale::Passthrough" is made to allow CPAN modules use
21       translator API without adding heavy dependencies (external software) or
22       requirements (operating resulting solution).
23
24       This software is released together with MooX::Locale::TextDomain::OO,
25       which allowes then to plugin any desired translation.
26

METHODS

28   __ MSGID
29       returns MSGID
30
31   __n MSGID, MSGID_PLURAL, COUNT
32       returns MSGID when count is equal 1, MSGID_PLURAL otherwise
33
34   __p MSGCTX, MSGID
35       returns MSGID
36

AUTHOR

38       Jens Rehsack, "<rehsack at cpan.org>"
39

BUGS

41       Please report any bugs or feature requests to
42       "bug-MooX-Locale-Passthrough at rt.cpan.org", or through the web
43       interface at
44       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooX-Locale-Passthrough>.
45       I will be notified, and then you'll automatically be notified of
46       progress on your bug as I make changes.
47

SUPPORT

49       You can find documentation for this module with the perldoc command.
50
51           perldoc MooX::Locale::Passthrough
52
53       You can also look for information at:
54
55       •   RT: CPAN's request tracker
56
57           <http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Locale-Passthrough>
58
59       •   AnnoCPAN: Annotated CPAN documentation
60
61           <http://annocpan.org/dist/MooX-Locale-Passthrough>
62
63       •   CPAN Ratings
64
65           <http://cpanratings.perl.org/m/MooX-Locale-Passthrough>
66
67       •   Search CPAN
68
69           <http://search.cpan.org/dist/MooX-Locale-Passthrough/>
70
72       Copyright 2017 Jens Rehsack.
73
74       This program is free software; you can redistribute it and/or modify it
75       under the terms of either: the GNU General Public License as published
76       by the Free Software Foundation; or the Artistic License.
77
78       See http://dev.perl.org/licenses/ for more information.
79
80
81
82perl v5.36.0                      2022-07-22      MooX::Locale::Passthrough(3)
Impressum