48 if ($locale ==
"pt_BR") {
53 if (strlen($locale) > 3) {
54 $locale = substr($locale, 0, -strlen(strrchr($locale,
'_')));
57 if (isset(self::$_plural[$locale])) {
60 if (!is_int($return) || ($return < 0)) {
174 return (
$number % 10 == 1) ? 0 : 1;
208 if ($locale ==
"pt_BR") {
213 if (strlen($locale) > 3) {
214 $locale = substr($locale, 0, -strlen(strrchr($locale,
'_')));
217 if (!is_callable(
$rule)) {
218 #require_once 'Zend/Translate/Exception.php'; 222 self::$_plural[$locale] =
$rule;
static setPlural($rule, $locale)
call_user_func($callable, $param)
static getPlural($number, $locale)