poio (version 0.0-4)

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

Description

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

Usage

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.