X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageTyv.php;h=0101b27a5757674837da4a2ec299fd1158be61a9;hb=58d70885d875a3928d96a2ca0a74dbc0ec5bb8bb;hp=a2a8831b6442e48f1ba750c80f8a436efa8622a8;hpb=254b163a9605c5f2e92c7b76158a8e8166efbbce;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageTyv.php b/languages/classes/LanguageTyv.php index a2a8831b64..0101b27a57 100644 --- a/languages/classes/LanguageTyv.php +++ b/languages/classes/LanguageTyv.php @@ -44,16 +44,16 @@ class LanguageTyv extends Language { } // Set up some constants... - $allVowels = array( "е", "и", "э", "ө", "ү", "а", "ё", "о", "у", "ы", "ю", "я" ); - $frontVowels = array( "е", "и", "э", "ө", "ү" ); - $backVowels = array( "а", "ё", "о", "у", "ы", "ю", "я" ); - $unroundFrontVowels = array( "е", "и", "э" ); - $roundFrontVowels = array( "ө", "ү" ); - $unroundBackVowels = array( "а", "ы", "я" ); - $roundBackVowels = array( "ё", "о", "у", "ю" ); - $unvoicedPhonemes = array( "т", "п", "с", "ш", "к", "ч", "х" ); - $directiveUnvoicedStems = array( "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң" ); - $directiveVoicedStems = array( "д", "б", "з", "ж", "г", "р", "й" ); + $allVowels = [ "е", "и", "э", "ө", "ү", "а", "ё", "о", "у", "ы", "ю", "я" ]; + $frontVowels = [ "е", "и", "э", "ө", "ү" ]; + $backVowels = [ "а", "ё", "о", "у", "ы", "ю", "я" ]; + $unroundFrontVowels = [ "е", "и", "э" ]; + $roundFrontVowels = [ "ө", "ү" ]; + $unroundBackVowels = [ "а", "ы", "я" ]; + $roundBackVowels = [ "ё", "о", "у", "ю" ]; + $unvoicedPhonemes = [ "т", "п", "с", "ш", "к", "ч", "х" ]; + $directiveUnvoicedStems = [ "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң" ]; + $directiveVoicedStems = [ "д", "б", "з", "ж", "г", "р", "й" ]; // Put the word in a form we can play with since we're using UTF-8 preg_match_all( '/./us', $word, $ar ); @@ -72,15 +72,11 @@ class LanguageTyv extends Language { if ( strcmp( $xvalue, $yvalue ) == 0 ) { $wordLastVowel = $xvalue; break; - } else { - continue; } } if ( $wordLastVowel !== null ) { break; - } else { - continue; } }