<?php
/** Kazakh (Қазақша)
- *
- *
- * @addtogroup Language
- */
-
+ *
+ * @ingroup Language
+ */
class LanguageKk_cyrl extends Language {
/**
* Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms
*/
- function convertGrammar( $word, $case, $variant ) {
- global $wgGrammarForms;
-
- if ($variant='kk-cyrl') { $word = self::convertGrammarKk_cyrl( $word, $case ); }
- if ($variant='kk-latn') { $word = self::convertGrammarKk_latn( $word, $case ); }
- if ($variant='kk-arab') { $word = self::convertGrammarKk_arab( $word, $case ); }
- return $word;
- }
function convertGrammarKk_cyrl( $word, $case ) {
global $wgGrammarForms;
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "да";
}
- }
+ }
break;
case "dc41":
case "possessive locative": #täweldık + jatıs
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "нда";
}
- }
+ }
break;
case "dc5":
case "ablative": #şığıs
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "da";
}
- }
+ }
break;
case "dc41":
case "possessive locative": #täweldık + jatıs
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "nda";
}
- }
+ }
break;
case "dc5":
case "ablative": #şığıs
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "دا";
}
- }
+ }
break;
case "dc41":
case "possessive locative": #täweldık + jatıs
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ندا";
}
- }
+ }
break;
case "dc5":
case "ablative": #şığıs
// Put the word in a form we can play with since we're using UTF-8
$ar = preg_split('//u', parent::lc($word), -1, PREG_SPLIT_NO_EMPTY);
- // Here's an array with the order of the letters in the word reversed
+ // Here's an array with the order of the letters in the word reversed
// so we can find a match quicker *shrug*
$wordReversed = array_reverse( $ar );