31 # Convert from the nominative form of a noun to some other case
32 # Invoked with {{GRAMMAR:case|word}}
44 MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::GrammarForms );
45 if ( isset( $grammarForms[
'kaa'][$case][$word] ) ) {
46 return $grammarForms[
'kaa'][$case][$word];
60 if ( substr( $string, 0, 1 ) ===
'i' ) {
61 return 'İ' . substr( $string, 1 );
63 return parent::ucfirst( $string );
74 if ( substr( $string, 0, 1 ) ===
'I' ) {
75 return 'ı' . substr( $string, 1 );
77 return parent::lcfirst( $string );
Karakalpak (Qaraqalpaqsha)
lcfirst( $string)
It fixes issue with lcfirst for transforming 'I' to 'ı'.
convertGrammar( $word, $case)
Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms.
ucfirst( $string)
It fixes issue with ucfirst for transforming 'i' to 'İ'.
Base class for language-specific code.
A class containing constants representing the names of configuration variables.