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