get_n_plural_forms: Get the number of plural forms from a PO file

Description Usage Arguments Value Note

View source: R/get_n_plural_forms.R

Description

Gets the number of plural forms specified in the"Plural-Forms" metadata element of a PO file.

Usage

1
get_n_plural_forms(x, default = 2L, ...)

Arguments

x

A po object or its metadata element.

default

An integer to return if the number of plural forms cannot be determined.

...

Arguments passed between methods.

Value

An integer of the number of plural forms for the language defined in the PO file.

Note

POT files are not language-specific and don't have a "Plural-Forms" metadata element. By convention, they are considered to have 2 plural forms, since that is how many pulral forms there are in English.


RL10N/poio documentation built on April 27, 2020, 3:50 a.m.