http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72239
Revision: 72239
Author: reedy
Date: 2010-09-02 22:20:00 +0000 (Thu, 02 Sep 2010)
Log Message:
-----------
Comment out some unused array declarations
Move some comments
Modified Paths:
--------------
trunk/phase3/languages/classes/LanguageKk_cyrl.php
trunk/phase3/languages/classes/LanguageTyv.php
Modified: trunk/phase3/languages/classes/LanguageKk_cyrl.php
===================================================================
--- trunk/phase3/languages/classes/LanguageKk_cyrl.php 2010-09-02 22:15:20 UTC
(rev 72238)
+++ trunk/phase3/languages/classes/LanguageKk_cyrl.php 2010-09-02 22:20:00 UTC
(rev 72239)
@@ -23,14 +23,14 @@
// Set up some constants...
// Vowels in last syllable
$frontVowels = array( "е", "ө", "ү", "і", "ә", "э", "я", "ё",
"и" );
- $backVowels = array( "а", "о", "ұ", "ы" );
+ //$backVowels = array( "а", "о", "ұ", "ы" );
$allVowels = array( "е", "ө", "ү", "і", "ә", "э", "а", "о",
"ұ", "ы", "я", "ё", "и" );
// Preceding letters
- $Nasals = array( "м", "н", "ң" );
- $Sonants = array( "и", "й", "л", "р", "у", "ю" );
+ //$Nasals = array( "м", "н", "ң" );
+ //$Sonants = array( "и", "й", "л", "р", "у", "ю" );
$Consonants = array( "п", "ф", "к", "қ", "т", "ш", "с", "х",
"ц", "ч", "щ", "б", "в", "г", "д" );
- $Sibilants = array( "ж", "з" );
- $Sonorants = array( "и", "й", "л", "р", "у", "ю", "м", "н",
"ң", "ж", "з" );
+ //$Sibilants = array( "ж", "з" );
+ //$Sonorants = array( "и", "й", "л", "р", "у", "ю", "м", "н",
"ң", "ж", "з" );
// Possessives
$firstPerson = array( "м", "ң" ); // 1st singular, 2nd unformal
Modified: trunk/phase3/languages/classes/LanguageTyv.php
===================================================================
--- trunk/phase3/languages/classes/LanguageTyv.php 2010-09-02 22:15:20 UTC
(rev 72238)
+++ trunk/phase3/languages/classes/LanguageTyv.php 2010-09-02 22:20:00 UTC
(rev 72239)
@@ -20,28 +20,28 @@
return $wgGrammarForms['tyv'][$case][$word];
}
- // Set up some constants...
+ // Set up some constants...
$allVowels = array( "е", "и", "э", "ө", "ү", "а", "ё", "о",
"у", "ы", "ю", "я", "a", "e", "i", "o", "ö", "u", "ü", "y" );
$frontVowels = array( "е", "и", "э", "ө", "ү", "e", "i", "ö",
"ü" );
- $backVowels = array( "а", "ё", "о", "у", "ы", "ю", "я", "a",
"o", "u", "y" );
- $unroundFrontVowels = array( "е", "и", "э", "e", "i" );
+ //$backVowels = array( "а", "ё", "о", "у", "ы", "ю", "я", "a",
"o", "u", "y" );
+ //$unroundFrontVowels = array( "е", "и", "э", "e", "i" );
$roundFrontVowels = array( "ө", "ү", "ö", "ü" );
- $unroundBackVowels = array( "а", "ы", "я", "a", "y" );
- $roundBackVowels = array( "ё", "о", "у", "ю", "o", "u" );
+ //$unroundBackVowels = array( "а", "ы", "я", "a", "y" );
+ //$roundBackVowels = array( "ё", "о", "у", "ю", "o", "u" );
$unvoicedPhonemes = array( "т", "п", "с", "ш", "к", "ч", "х",
"t", "p", "s", "k", "x" );
- $directiveUnvoicedStems = array( "т", "п", "с", "ш", "к", "ч",
"х", "л", "м", "н", "ң", "t", "p", "s", "k", "x", "l", "m", "n", "ŋ" );
+ //$directiveUnvoicedStems = array( "т", "п", "с", "ш", "к",
"ч", "х", "л", "м", "н", "ң", "t", "p", "s", "k", "x", "l", "m", "n", "ŋ" );
$directiveVoicedStems = array( "д", "б", "з", "ж", "г", "р",
"й", "d", "b", "z", "g", "r", "j" );
-// $allSonants = array("л", "м", "н", "ң", "р", "й");
-// $allNasals = array("м", "н", "ң");
+ //$allSonants = array("л", "м", "н", "ң", "р", "й");
+ //$allNasals = array("м", "н", "ң");
- // Put the word in a form we can play with since we're using UTF-8
+ //Put the word in a form we can play with since we're using
UTF-8
preg_match_all( '/./us', $word, $ar );
$wordEnding = $ar[0][count( $ar[0] ) - 1]; // Here's the last
letter in the word
$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*
- // Find the last vowel in the word
+ // Find the last vowel in the word
$wordLastVowel = NULL;
foreach ( $wordReversed as $xvalue ) {
foreach ( $allVowels as $yvalue ) {
@@ -59,7 +59,7 @@
}
}
- // Now convert the word
+ // Now convert the word
switch ( $case ) {
case "genitive":
if ( in_array( $wordEnding, $unvoicedPhonemes )
) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs