Term::CLI::L10N::nl - Dutch localizations for Term::CLI
version 0.04005
use Term::CLI::L10N; Term::CLI::L10N->set_language('nl'); say loc("ERROR"); # -> FOUT say Term::CLI::L10N->quant(1, 'dingen'); # -> 1 ding say Term::CLI::L10N->quant(1, 'leraren'); # -> 1 leraar
The Term::CLI::L10N::nl module is derived from the Term::CLI::L10N(3p) class to provide Dutch translations for the messages of the Term::CLI(3p) library.
Term::CLI::L10N::nl
It implements its own numerate method that reverses the meaning of its "form" arguments (because its easier to derive the singular noun from the plural in Dutch).
numerate
It defines its lexicon using Locale::Maketext::Lexicon::Gettext(3p) and the __DATA__ block.
__DATA__
Inherits its constructor from Term::CLI::L10N, though it should not be called directly.
Take Str as a plural noun and return its singular form.
Overrides the parent's numerate method, see Locale::Maketext(3p).
Note that the $plural and $singular forms are reversed here, and that there is no $negative (or, if given, it will be ignored).
$negative
Term::CLI::L10N(3p), Term::CLI(3p), perl(1).
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.