Term::CLI::L10N - localizations for Term::CLI
version 0.04001
use Term::CLI::L10N qw( :all ); say loc("invalid value"); # "loc" is imported by default. say __("invalid value"); # "__" is not imported by default. my $lh = Term::CLI::L10N->handle(); say $lh->maketext("invalid value"); # "maketext" is not imported by default.
The module can export a few utility routines.
Synonym for loc.
Call Locale::Maketext's maketext function on the arguments.
maketext
Return the module's Locale::Maketext handle.
Set the language to Str, trying multiple if a list is given.
Dies with an error if no language can be loaded.
Term::CLI::L10N::en(3p), Term::CLI::L10N::nl(3p), Locale::Maketext(3p), Locale::Maketext::Lexicon(3p).
Steven Bakker <sbakker@cpan.org>.
Copyright (c) 2018 Steven Bakker; All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perldoc perlartistic."
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Term::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::CLI
CPAN shell
perl -MCPAN -e shell install Term::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.