Zend Framework  1.12
Static Public Member Functions | Static Protected Attributes | List of all members
Zend_Translate_Plural Class Reference

Static Public Member Functions

static getPlural ($number, $locale)
 Returns the plural definition to use.
 
static setPlural ($rule, $locale)
 Set's a new plural rule.
 

Static Protected Attributes

static $_plural = array()
 

Member Function Documentation

static getPlural (   $number,
  $locale 
)
static

Returns the plural definition to use.

Parameters
integer$numberNumber for plural selection
string$localeLocale to use
Returns
integer Plural number to use
static setPlural (   $rule,
  $locale 
)
static

Set's a new plural rule.

Parameters
string$ruleCallback which acts as rule
string$localeLocale which is used for this callback
Returns
null

Member Data Documentation

$_plural = array()
staticprotected