MediaWiki master
LanguageKaa.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Languages;
8
12
18class LanguageKaa extends Language {
19
25 public function convertGrammar( $word, $case ) {
26 $grammarForms =
28 if ( isset( $grammarForms['kaa'][$case][$word] ) ) {
29 return $grammarForms['kaa'][$case][$word];
30 }
31 /* Full code of function convertGrammar() is in development. Updates coming soon. */
32 return $word;
33 }
34
40 public function ucfirst( $str ) {
41 if ( str_starts_with( $str, 'ı' ) ) {
42 return 'Í' . mb_substr( $str, 1 );
43 }
44 return parent::ucfirst( $str );
45 }
46
52 public function lcfirst( $str ) {
53 if ( str_starts_with( $str, 'Í' ) ) {
54 return 'ı' . mb_substr( $str, 1 );
55 }
56 return parent::lcfirst( $str );
57 }
58
59}
60
62class_alias( LanguageKaa::class, 'LanguageKaa' );
Base class for language-specific code.
Definition Language.php:69
Karakalpak (Qaraqalpaqsha)
convertGrammar( $word, $case)
Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms.
ucfirst( $str)
Fixes an issue with ucfirst for transforming 'ı' to 'Í'.
lcfirst( $str)
Fixes an issue with lcfirst for transforming 'Í' to 'ı'.
A class containing constants representing the names of configuration variables.
const GrammarForms
Name constant for the GrammarForms setting, for use with Config::get()
Service locator for MediaWiki core services.
static getInstance()
Returns the global default instance of the top level service locator.