* @ingroup Language
*/
class LanguageKsh extends Language {
- static $familygender = array(
+ private static $familygender = array(
// Do not add male wiki families, since that's the default.
// No need add neuter wikis having names ending in -wiki.
'wikipedia' => 'f',
* Contents of the leftmost table column can be copied and pasted as
* "case" values.
*
- * @param $word String
- * @param $case String
+ * @param string $word
+ * @param string $case
*
* @return string
*/
function convertGrammar( $word, $case ) {
$lord = strtolower( $word );
$gender = 'm'; // Nuutnaarel // default
- if ( preg_match ( '/wiki$/', $lord ) ) {
+ if ( preg_match( '/wiki$/', $lord ) ) {
$gender = 'n'; // Dat xyz-wiki
}
if ( isset( self::$familygender[$lord] ) ) {
switch ( $gender ) {
case 'm':
$lord = 'dä';
- break ;
+ break;
case 'f':
$lord = 'di';
break;
/**
* Avoid grouping whole numbers between 0 to 9999
*
- * @param $_ string
+ * @param string $_
*
* @return string
*/
/**
* Handle cases of (1, other, 0) or (1, other)
*
- * @param $count int
- * @param $forms array
+ * @param int $count
+ * @param array $forms
*
* @return string
*/
function convertPlural( $count, $forms ) {
- if ( !count( $forms ) ) { return ''; }
+ $forms = $this->handleExplicitPluralForms( $count, $forms );
+ if ( is_string( $forms ) ) {
+ return $forms;
+ }
+ if ( !count( $forms ) ) {
+ return '';
+ }
$forms = $this->preConvertPlural( $forms, 3 );
if ( $count == 1 ) {