r72239 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72238‎ | r72239 | r72240 >
Date:22:20, 2 September 2010
Author:reedy
Status:reverted
Tags:
Comment:
Comment out some unused array declarations

Move some comments
Modified paths:
  • /trunk/phase3/languages/classes/LanguageKk_cyrl.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageTyv.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageTyv.php
@@ -20,28 +20,28 @@
2121 return $wgGrammarForms['tyv'][$case][$word];
2222 }
2323
24 - // Set up some constants...
 24+ // Set up some constants...
2525 $allVowels = array( "е", "и", "э", "ө", "ү", "а", "ё", "о", "у", "ы", "ю", "я", "a", "e", "i", "o", "ö", "u", "ü", "y" );
2626 $frontVowels = array( "е", "и", "э", "ө", "ү", "e", "i", "ö", "ü" );
27 - $backVowels = array( "а", "ё", "о", "у", "ы", "ю", "я", "a", "o", "u", "y" );
28 - $unroundFrontVowels = array( "е", "и", "э", "e", "i" );
 27+ //$backVowels = array( "а", "ё", "о", "у", "ы", "ю", "я", "a", "o", "u", "y" );
 28+ //$unroundFrontVowels = array( "е", "и", "э", "e", "i" );
2929 $roundFrontVowels = array( "ө", "ү", "ö", "ü" );
30 - $unroundBackVowels = array( "а", "ы", "я", "a", "y" );
31 - $roundBackVowels = array( "ё", "о", "у", "ю", "o", "u" );
 30+ //$unroundBackVowels = array( "а", "ы", "я", "a", "y" );
 31+ //$roundBackVowels = array( "ё", "о", "у", "ю", "o", "u" );
3232 $unvoicedPhonemes = array( "т", "п", "с", "ш", "к", "ч", "х", "t", "p", "s", "k", "x" );
33 - $directiveUnvoicedStems = array( "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң", "t", "p", "s", "k", "x", "l", "m", "n", "ŋ" );
 33+ //$directiveUnvoicedStems = array( "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң", "t", "p", "s", "k", "x", "l", "m", "n", "ŋ" );
3434 $directiveVoicedStems = array( "д", "б", "з", "ж", "г", "р", "й", "d", "b", "z", "g", "r", "j" );
3535
36 -// $allSonants = array("л", "м", "н", "ң", "р", "й");
37 -// $allNasals = array("м", "н", "ң");
 36+ //$allSonants = array("л", "м", "н", "ң", "р", "й");
 37+ //$allNasals = array("м", "н", "ң");
3838
39 - // Put the word in a form we can play with since we're using UTF-8
 39+ //Put the word in a form we can play with since we're using UTF-8
4040 preg_match_all( '/./us', $word, $ar );
4141
4242 $wordEnding = $ar[0][count( $ar[0] ) - 1]; // Here's the last letter in the word
4343 $wordReversed = array_reverse( $ar[0] ); // Here's an array with the order of the letters in the word reversed so we can find a match quicker *shrug*
4444
45 - // Find the last vowel in the word
 45+ // Find the last vowel in the word
4646 $wordLastVowel = NULL;
4747 foreach ( $wordReversed as $xvalue ) {
4848 foreach ( $allVowels as $yvalue ) {
@@ -59,7 +59,7 @@
6060 }
6161 }
6262
63 - // Now convert the word
 63+ // Now convert the word
6464 switch ( $case ) {
6565 case "genitive":
6666 if ( in_array( $wordEnding, $unvoicedPhonemes ) ) {
Index: trunk/phase3/languages/classes/LanguageKk_cyrl.php
@@ -23,14 +23,14 @@
2424 // Set up some constants...
2525 // Vowels in last syllable
2626 $frontVowels = array( "е", "ө", "ү", "і", "ә", "э", "я", "ё", "и" );
27 - $backVowels = array( "а", "о", "ұ", "ы" );
 27+ //$backVowels = array( "а", "о", "ұ", "ы" );
2828 $allVowels = array( "е", "ө", "ү", "і", "ә", "э", "а", "о", "ұ", "ы", "я", "ё", "и" );
2929 // Preceding letters
30 - $Nasals = array( "м", "н", "ң" );
31 - $Sonants = array( "и", "й", "л", "р", "у", "ю" );
 30+ //$Nasals = array( "м", "н", "ң" );
 31+ //$Sonants = array( "и", "й", "л", "р", "у", "ю" );
3232 $Consonants = array( "п", "ф", "к", "қ", "т", "ш", "с", "х", "ц", "ч", "щ", "б", "в", "г", "д" );
33 - $Sibilants = array( "ж", "з" );
34 - $Sonorants = array( "и", "й", "л", "р", "у", "ю", "м", "н", "ң", "ж", "з" );
 33+ //$Sibilants = array( "ж", "з" );
 34+ //$Sonorants = array( "и", "й", "л", "р", "у", "ю", "м", "н", "ң", "ж", "з" );
3535
3636 // Possessives
3737 $firstPerson = array( "м", "ң" ); // 1st singular, 2nd unformal

Follow-up revisions

RevisionCommit summaryAuthorDate
r72830Revert commenting out in r72239 (leaving whitespace changesreedy20:54, 11 September 2010

Status & tagging log