| 1 | #============================================================================= | ||
| 2 | # | ||
| 3 | # Module: Term::CLI::L10N::en | ||
| 4 | # Author: Steven Bakker (SBAKKER), <sbakker@cpan.org> | ||
| 5 | # Created: 27/02/18 | ||
| 6 | # | ||
| 7 | # Copyright (c) 2018-2022 Steven Bakker; All rights reserved. | ||
| 8 | # | ||
| 9 | # This module is free software; you can redistribute it and/or modify | ||
| 10 | # it under the same terms as Perl itself. See "perldoc perlartistic." | ||
| 11 | # | ||
| 12 | # This software is distributed in the hope that it will be useful, | ||
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 15 | # | ||
| 16 | #============================================================================= | ||
| 17 | |||
| 18 | package Term::CLI::L10N::en 0.061000; | ||
| 19 | |||
| 20 | 15 | ▶ | use 5.014; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 15 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 15 | ▶ | use parent 0.225 qw( Term::CLI::L10N ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | ## no critic (ProhibitPackageVars) | ||
| 26 | 15 | our %Lexicon = ( _AUTO => 1, ); | |
| 27 | |||
| 28 | 15 | 1; | |
| 29 | |||
| 30 | __END__ | ||
| 31 | |||
| 32 | =pod | ||
| 33 | |||
| 34 | =head1 NAME | ||
| 35 | |||
| 36 | Term::CLI::L10N::en - English localizations for Term::CLI | ||
| 37 | |||
| 38 | =head1 VERSION | ||
| 39 | |||
| 40 | version 0.061000 | ||
| 41 | |||
| 42 | =head1 SYNOPSIS | ||
| 43 | |||
| 44 | use Term::CLI::L10N qw( loc ); | ||
| 45 | |||
| 46 | Term::CLI::L10N->set_language('en'); | ||
| 47 | |||
| 48 | say loc("invalid value"); # -> invalid value | ||
| 49 | say Term::CLI::L10N->quant(1, 'guitar') ; # -> 1 guitar | ||
| 50 | say Term::CLI::L10N->quant(2, 'guitar') ; # -> 2 guitars | ||
| 51 | |||
| 52 | =head1 DESCRIPTION | ||
| 53 | |||
| 54 | Provide English language strings for L<Term::CLI>(3p). | ||
| 55 | |||
| 56 | =head1 VARIABLES | ||
| 57 | |||
| 58 | =over | ||
| 59 | |||
| 60 | =item <%LEXICON> | ||
| 61 | |||
| 62 | Package variable containing the language mappings. | ||
| 63 | Contains C<_AUTO> mapped to C<1>, assuming that all | ||
| 64 | messages are written in English by default. | ||
| 65 | |||
| 66 | =back | ||
| 67 | |||
| 68 | =head1 SEE ALSO | ||
| 69 | |||
| 70 | L<Term::CLI>(3p), | ||
| 71 | L<Locale::Maketext>(3p), | ||
| 72 | L<Term::CLI::L10N>(3p). | ||
| 73 | |||
| 74 | =head1 AUTHOR | ||
| 75 | |||
| 76 | Steven Bakker E<lt>sbakker@cpan.orgE<gt>. | ||
| 77 | |||
| 78 | =head1 COPYRIGHT AND LICENSE | ||
| 79 | |||
| 80 | Copyright (c) 2018 Steven Bakker; All rights reserved. | ||
| 81 | |||
| 82 | This module is free software; you can redistribute it and/or modify | ||
| 83 | it under the same terms as Perl itself. See "perldoc perlartistic." | ||
| 84 | |||
| 85 | This software is distributed in the hope that it will be useful, | ||
| 86 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 87 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 88 | |||
| 89 | =cut | ||