X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageFi.php;h=bf0925243b38b28c1412bcbeccd76756551c266f;hb=612753f1841a9ffdb6adbf3128c026064938a15f;hp=910e8aeaf4cf37877470708a347c5119cf4bee30;hpb=91372c2225304291b7f77c20dedc2ffab000f508;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageFi.php b/languages/classes/LanguageFi.php index 910e8aeaf4..bf0925243b 100644 --- a/languages/classes/LanguageFi.php +++ b/languages/classes/LanguageFi.php @@ -28,7 +28,6 @@ * @ingroup Language */ class LanguageFi extends Language { - /** * Convert from the nominative form of a noun to some other case * Invoked with {{grammar:case|word}} @@ -43,8 +42,8 @@ class LanguageFi extends Language { 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 ); @@ -92,13 +91,16 @@ class LanguageFi extends Language { function translateBlockExpiry( $str, $forContent = false ) { /* 'ago', 'now', 'today', 'this', 'next', - 'first', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'ninth', 'tenth', 'eleventh', 'twelfth', + 'first', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'ninth', + 'tenth', 'eleventh', 'twelfth', 'tomorrow', 'yesterday' - $months = 'january:tammikuu,february:helmikuu,march:maaliskuu,april:huhtikuu,may:toukokuu,june:kesäkuu,' . - 'july:heinäkuu,august:elokuu,september:syyskuu,october:lokakuu,november:marraskuu,december:joulukuu,' . - 'jan:tammikuu,feb:helmikuu,mar:maaliskuu,apr:huhtikuu,jun:kesäkuu,jul:heinäkuu,aug:elokuu,sep:syyskuu,'. - 'oct:lokakuu,nov:marraskuu,dec:joulukuu,sept:syyskuu'; + $months = 'january:tammikuu,february:helmikuu,march:maaliskuu,april:huhtikuu,' . + 'may:toukokuu,june:kesäkuu,july:heinäkuu,august:elokuu,september:syyskuu,' . + 'october:lokakuu,november:marraskuu,december:joulukuu,' . + 'jan:tammikuu,feb:helmikuu,mar:maaliskuu,apr:huhtikuu,jun:kesäkuu,' . + 'jul:heinäkuu,aug:elokuu,sep:syyskuu,oct:lokakuu,nov:marraskuu,' . + dec:joulukuu,sept:syyskuu'; */ $weekds = array( 'monday' => 'maanantai', @@ -147,10 +149,10 @@ class LanguageFi extends Language { ); $final = ''; - $tokens = explode ( ' ', $str ); + $tokens = explode( ' ', $str ); foreach ( $tokens as $item ) { if ( !is_numeric( $item ) ) { - if ( count ( explode( '-', $item ) ) == 3 && strlen( $item ) == 10 ) { + if ( count( explode( '-', $item ) ) == 3 && strlen( $item ) == 10 ) { list( $yyyy, $mm, $dd ) = explode( '-', $item ); $final .= ' ' . $this->date( "{$yyyy}{$mm}{$dd}000000" ); continue;