26 May 2021 09:29:08 UTC
- Distribution: Term-CLI
- Module version: 0.052003
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (0)
- Testers (20 / 2 / 0)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Perl: v5.14.1
- Activity24 month
- Download (83.37KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Term::CLI::L10N::nl - Dutch localizations for Term::CLI
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
It implements its own
numeratemethod that reverses the meaning of its "form" arguments (because it's easier to derive the singular noun from the plural in Dutch).
It defines its lexicon using Locale::Maketext::Lexicon::Gettext(3p) and the
Inherits its constructor from Term::CLI::L10N, though it should not be called directly.
- singularise ( Str )
- singularize ( Str )
Take Str as a plural noun and return its singular form.
- numerate ( $num, $plural [, $singular] )
Overrides the parent's
numeratemethod, 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).
Steven Bakker <email@example.com>.
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.