31 # Convert from the nominative form of a noun to some other case
32 # Invoked with {{GRAMMAR:case|word}}
59 if ( substr( $string, 0, 1 ) ===
'i' ) {
60 return 'İ' . substr( $string, 1 );
62 return parent::ucfirst( $string );
73 if ( substr( $string, 0, 1 ) ===
'I' ) {
74 return 'ı' . substr( $string, 1 );
76 return parent::lcfirst( $string );
$wgGrammarForms
Some languages need different word forms, usually for different cases.
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 'İ'.
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...