return $wgGrammarForms['fi'][$case][$word];
}
- # These rules are not perfect, but they are currently only used for site names so it doesn't
- # matter if they are wrong sometimes. Just add a special case for your site name if necessary.
+ # These rules don't cover the whole language.
+ # They are used only for site names.
# wovel harmony flag
$aou = preg_match( '/[aou][^äöy]*$/i', $word );
break;
case 'illative':
# Double the last letter and add 'n'
- # mb_substr has a compatibility function in GlobalFunctions.php
$word = $word . mb_substr( $word, -1 ) . 'n';
break;
case 'inessive':
'jul:heinäkuu,aug:elokuu,sep:syyskuu,oct:lokakuu,nov:marraskuu,' .
dec:joulukuu,sept:syyskuu';
*/
- $weekds = array(
+ $weekds = [
'monday' => 'maanantai',
'tuesday' => 'tiistai',
'wednesday' => 'keskiviikko',
'year' => 'vuosi',
'infinite' => 'ikuisesti',
'indefinite' => 'ikuisesti'
- );
+ ];
$final = '';
$tokens = explode( ' ', $str );