diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Locale/Maketext.pod')
-rw-r--r-- | Master/tlpkg/tlperl/lib/Locale/Maketext.pod | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/tlpkg/tlperl/lib/Locale/Maketext.pod b/Master/tlpkg/tlperl/lib/Locale/Maketext.pod index 14b47c884e8..3ef9c3a5a9b 100644 --- a/Master/tlpkg/tlperl/lib/Locale/Maketext.pod +++ b/Master/tlpkg/tlperl/lib/Locale/Maketext.pod @@ -166,7 +166,8 @@ file, you might consider something like this in your project class: my $lh; if($chosen_language) { $lh = $class->get_handle($chosen_language) - || die "No language handle for \"$chosen_language\" or the like"; + || die "No language handle for \"$chosen_language\"" + . " or the like"; } else { # Config file missing, maybe? $lh = $class->get_handle() @@ -385,6 +386,14 @@ entirely. Note that numf is called by quant for stringifying all quantifying numbers. +=item $language->numerate($number, $singular, $plural, $negative) + +This returns the given noun form which is appropriate for the quantity +C<$number> according to this language's conventions. C<numerate> is +used internally by C<quant> to quantify nouns. Use it directly -- +usually from bracket notation -- to avoid C<quant>'s implicit call to +C<numf> and output of a numeric quantity. + =item $language->sprintf($format, @items) This is just a wrapper around Perl's normal C<sprintf> function. @@ -1244,7 +1253,7 @@ to infer the plural form from the singular. But for other languages (as is discussed at length in L<Locale::Maketext::TPJ13|Locale::Maketext::TPJ13>), simple -C<quant>/C<numerify> is not enough. For the particularly problematic +C<quant>/C<numf> is not enough. For the particularly problematic Slavic languages, what you may need is a method which you provide with the number, the citation form of the noun to quantify, and the case and gender that the sentence's syntax projects onto that |