| Новости | FAQ | Авторы | Документация | В действии | Библиотека | 
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум | 
redactor 02.11.2004 11:34
@decline[number;nominative;genitive;genitiveplural]
$last_digit($number%10)
$two_last_digits($number%100)
^if($last_digit == 1 && $two_last_digits != 11 ){
	$noun[$nominative]
}{
	^if(($last_digit >= 2 && $last_digit <= 4) && ($two_last_digits < 12 || $two_last_digits > 14 )){
	$noun[$genitive]
	}{
	$noun[$genitiveplural]
	}
}
$result[$noun]