X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageOs.php;h=d374c859c2a7f188e7c0ce2a0532db9e5e4a3ce1;hb=d135b6ebe5a79a6b3d0e03fe2bd11747b971ff68;hp=dbf4cceb3236f58b37571eccb5622af96ca7ae45;hpb=a8304d4c73fd04c338ae23f3028fc475921cc0fa;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageOs.php b/languages/classes/LanguageOs.php index dbf4cceb32..d374c859c2 100644 --- a/languages/classes/LanguageOs.php +++ b/languages/classes/LanguageOs.php @@ -71,15 +71,14 @@ class LanguageOs extends Language { if ( preg_match( '/тæ$/u', $word ) ) { $word = mb_substr( $word, 0, -1 ); $end_allative = 'æм'; - } - # Works if $word is in singular form. - # Checking if $word ends on one of the vowels: е, ё, и, о, ы, э, ю, я. - elseif ( preg_match( "/[аæеёиоыэюя]$/u", $word ) ) { + } elseif ( preg_match( "/[аæеёиоыэюя]$/u", $word ) ) { + # Works if $word is in singular form. + # Checking if $word ends on one of the vowels: е, ё, и, о, ы, э, ю, я. $jot = 'й'; - } - # Checking if $word ends on 'у'. 'У' can be either consonant 'W' or vowel 'U' in cyrillic Ossetic. - # Examples: {{grammar:genitive|аунеу}} = аунеуы, {{grammar:genitive|лæппу}} = лæппуйы. - elseif ( preg_match( "/у$/u", $word ) ) { + } elseif ( preg_match( "/у$/u", $word ) ) { + # Checking if $word ends on 'у'. 'У' + # can be either consonant 'W' or vowel 'U' in cyrillic Ossetic. + # Examples: {{grammar:genitive|аунеу}} = аунеуы, {{grammar:genitive|лæппу}} = лæппуйы. if ( !preg_match( "/[аæеёиоыэюя]$/u", mb_substr( $word, -2, 1 ) ) ) { $jot = 'й'; }