MediaWiki REL1_41
LanguageKaa.php
Go to the documentation of this file.
1<?php
23
29class LanguageKaa extends Language {
30
36 public function convertGrammar( $word, $case ) {
37 $grammarForms =
38 MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::GrammarForms );
39 if ( isset( $grammarForms['kaa'][$case][$word] ) ) {
40 return $grammarForms['kaa'][$case][$word];
41 }
42 /* Full code of function convertGrammar() is in development. Updates coming soon. */
43 return $word;
44 }
45
51 public function ucfirst( $str ) {
52 if ( substr( $str, 0, 1 ) === 'i' ) {
53 return 'İ' . substr( $str, 1 );
54 }
55 return parent::ucfirst( $str );
56 }
57
63 public function lcfirst( $str ) {
64 if ( substr( $str, 0, 1 ) === 'I' ) {
65 return 'ı' . substr( $str, 1 );
66 }
67 return parent::lcfirst( $str );
68 }
69
70}
Karakalpak (Qaraqalpaqsha)
lcfirst( $str)
Fixes an issue with lcfirst for transforming 'I' to 'ı'.
convertGrammar( $word, $case)
Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms.
ucfirst( $str)
Fixes an issue with ucfirst for transforming 'i' to 'İ'.
Base class for language-specific code.
Definition Language.php:63
A class containing constants representing the names of configuration variables.
Service locator for MediaWiki core services.