class PluralizationRules

Returns the plural rules for a given locale.

Methods

static integer
get(integer $number, string $locale)

Returns the plural position to use for the given locale and number.

static 
set(string $rule, string $locale)

Overrides the default plural rule for a given locale.

Details

at line line 32
static integer get(integer $number, string $locale)

Returns the plural position to use for the given locale and number.

Parameters

integer $number The number
string $locale The locale

Return Value

integer The plural position

at line line 198
static set(string $rule, string $locale)

Overrides the default plural rule for a given locale.

Parameters

string $rule A PHP callable
string $locale The locale

Exceptions

LogicException