Class Zend_Translate_Plural

Description

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

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Translate/Plural.php (line 30)


	
			
Variable Summary
 static string $_plural
Method Summary
 static integer getPlural (integer $number, string $locale)
 static null setPlural (string $rule, string $locale)
Variables
static string $_plural = array() (line 37)

Manual rule to use

  • access: protected
Methods
static getPlural (line 46)

Returns the plural definition to use

  • return: Plural number to use
  • access: public
static integer getPlural (integer $number, string $locale)
  • integer $number: Number for plural selection
  • string $locale: Locale to use
static setPlural (line 206)

Set's a new plural rule

  • access: public
static null setPlural (string $rule, string $locale)
  • string $rule: Callback which acts as rule
  • string $locale: Locale which is used for this callback

Documentation generated on Mon, 21 Jun 2010 15:39:08 -0400 by phpDocumentor 1.4.3