X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageTyv.php;h=437651c579ed70b4f02202545c139317c9615497;hb=ca5aacd6c11df2403d672deec99f53e9cbdd1fd7;hp=a2a8831b6442e48f1ba750c80f8a436efa8622a8;hpb=a5e71daa0a840e351ec0c20ce51fc05671620496;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageTyv.php b/languages/classes/LanguageTyv.php index a2a8831b64..437651c579 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 );