File: README.md

package info (click to toggle)
libmoox-locale-passthrough-perl 0.001-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 88 kB
  • sloc: perl: 52; makefile: 2
file content (83 lines) | stat: -rw-r--r-- 2,331 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# NAME

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

# SYNOPSIS

    { package WonderBar;
      use Moo;
      with "MooX::Locale::Passthrough";

      sub tell_me { my $self = shift; $self->__("Hello world"); }
    }

    WonderBar->new->tell_me;

# DESCRIPTION

`MooX::Locale::Passthrough` is made to allow CPAN modules use translator API
without adding heavy dependencies (external software) or requirements (operating
resulting solution).

This software is released together with [MooX::Locale::TextDomain::OO](https://metacpan.org/pod/MooX::Locale::TextDomain::OO), which
allowes then to plugin any desired translation.

# METHODS

## \_\_ MSGID

returns MSGID

## \_\_n MSGID, MSGID\_PLURAL, COUNT

returns MSGID when count is equal 1, MSGID\_PLURAL otherwise

## \_\_p MSGCTX, MSGID

returns MSGID

# AUTHOR

Jens Rehsack, `<rehsack at cpan.org>`

# BUGS

Please report any bugs or feature requests to
`bug-MooX-Locale-Passthrough at rt.cpan.org`, or through the web interface at
[http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooX-Locale-Passthrough](http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooX-Locale-Passthrough).
I will be notified, and then you'll automatically be notified of progress
on your bug as I make changes.

# SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc MooX::Locale::Passthrough

You can also look for information at:

- RT: CPAN's request tracker

    [http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Locale-Passthrough](http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Locale-Passthrough)

- AnnoCPAN: Annotated CPAN documentation

    [http://annocpan.org/dist/MooX-Locale-Passthrough](http://annocpan.org/dist/MooX-Locale-Passthrough)

- CPAN Ratings

    [http://cpanratings.perl.org/m/MooX-Locale-Passthrough](http://cpanratings.perl.org/m/MooX-Locale-Passthrough)

- Search CPAN

    [http://search.cpan.org/dist/MooX-Locale-Passthrough/](http://search.cpan.org/dist/MooX-Locale-Passthrough/)

# LICENSE AND COPYRIGHT

Copyright 2017 Jens Rehsack.

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.