X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageOs.php;h=d374c859c2a7f188e7c0ce2a0532db9e5e4a3ce1;hb=e2f61aa44095d56af0d4b25a59e25b55a6c297bc;hp=dbf4cceb3236f58b37571eccb5622af96ca7ae45;hpb=166191535f486569277e95b7e6a3850b5db6757d;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 = 'й'; }