X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageFi.php;h=54ff421634619b1a12f3eeb5b1e54782f68768c4;hb=6df9ed1ad68c92b5e7364038ef3932c4739eb86e;hp=bf0925243b38b28c1412bcbeccd76756551c266f;hpb=cb2896f90ebef77c02c9da4067b0e56e37471092;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageFi.php b/languages/classes/LanguageFi.php index bf0925243b..54ff421634 100644 --- a/languages/classes/LanguageFi.php +++ b/languages/classes/LanguageFi.php @@ -73,7 +73,6 @@ class LanguageFi extends Language { 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': @@ -85,10 +84,11 @@ class LanguageFi extends Language { /** * @param string $str - * @param bool $forContent + * @param User $user User object to use timezone from or null for $wgUser + * @param int $now Current timestamp, for formatting relative block durations * @return string */ - function translateBlockExpiry( $str, $forContent = false ) { + function translateBlockExpiry( $str, User $user = null, $now = 0 ) { /* 'ago', 'now', 'today', 'this', 'next', 'first', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'ninth', @@ -102,7 +102,7 @@ class LanguageFi extends Language { 'jul:heinäkuu,aug:elokuu,sep:syyskuu,oct:lokakuu,nov:marraskuu,' . dec:joulukuu,sept:syyskuu'; */ - $weekds = array( + $weekds = [ 'monday' => 'maanantai', 'tuesday' => 'tiistai', 'wednesday' => 'keskiviikko', @@ -146,7 +146,7 @@ class LanguageFi extends Language { 'year' => 'vuosi', 'infinite' => 'ikuisesti', 'indefinite' => 'ikuisesti' - ); + ]; $final = ''; $tokens = explode( ' ', $str );