| 1 | package MojoMojo::I18N; | ||
| 2 | 7 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 7 | ▶ | use parent 'Locale::Maketext'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =head1 Methods | ||
| 7 | |||
| 8 | =head2 loc | ||
| 9 | |||
| 10 | Abbreviation for localize() | ||
| 11 | |||
| 12 | =cut | ||
| 13 | |||
| 14 | 7 | *loc = \&localize; | |
| 15 | |||
| 16 | =head2 localize | ||
| 17 | |||
| 18 | Translate text to locality | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | 86 | ▶ | sub localize { |
|
Subroutine
localize: called CC=1 SCAR=0.0
Pod
documented
| |||
| 23 | 86 | my $self = shift; | |
| 24 | |||
| 25 | 86 | return $self->maketext(@_); | |
| 26 | } | ||
| 27 | |||
| 28 | =head2 tense | ||
| 29 | |||
| 30 | This is only here to satisfy Pod coverage tests. | ||
| 31 | Not sure why t/03podcoverage.t thinks there is a tense sub in here? | ||
| 32 | |||
| 33 | =head1 NAME | ||
| 34 | |||
| 35 | MojoMojo::I18N - support for language localization | ||
| 36 | |||
| 37 | =head1 AUTHORS | ||
| 38 | |||
| 39 | Marcus Ramberg <mramberg@cpan.org> | ||
| 40 | |||
| 41 | =head1 LICENSE | ||
| 42 | |||
| 43 | This library is free software. You can redistribute it and/or modify | ||
| 44 | it under the same terms as Perl itself. | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | 7 | 1; | |