Your IP : 172.70.178.33


Current Path : /var/www/element/data/www/wiki.element.ru/languages/classes/
Upload File :
Current File : /var/www/element/data/www/wiki.element.ru/languages/classes/LanguageSe.php

<?php
/**
 * Northern Sami (Sámegiella)
 *
 * @ingroup Language
 */
class LanguageSe extends Language {

	/**
	 * @param $count int
	 * @param $forms array
	 * @return string
	 */
	function convertPlural( $count, $forms ) {
		if ( !count( $forms ) ) { return ''; }

		// plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#se
		$forms = $this->preConvertPlural( $forms, 3 );

		if ( $count == 1 ) {
			$index = 0;
		} elseif ( $count == 2 ) {
			$index = 1;
		} else {
			$index = 2;
		}
		return $forms[$index];
	}
}