Utility class for returning the plural rules according to the given locale

category Zend
package Zend_Locale
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Returns the plural definition to use

getPlural(integer $number, string $locale) : integer
Static

Parameters

$number

integer

Number for plural selection

$locale

string

Locale to use

Returns

integerPlural number to use

Set's a new plural rule

setPlural(string $rule, string $locale) : null
Static

Parameters

$rule

string

Callback which acts as rule

$locale

string

Locale which is used for this callback

Returns

null

 Properties

 

Manual rule to use

$_plural : string

Default

array()
Static