MediaWiki  1.34.0
LanguageKaa.php
Go to the documentation of this file.
1 <?php
29 class LanguageKaa extends Language {
30 
31  # Convert from the nominative form of a noun to some other case
32  # Invoked with {{GRAMMAR:case|word}}
33 
41  function convertGrammar( $word, $case ) {
42  global $wgGrammarForms;
43  if ( isset( $wgGrammarForms['kaa'][$case][$word] ) ) {
44  return $wgGrammarForms['kaa'][$case][$word];
45  }
46  /* Full code of function convertGrammar() is in development. Updates coming soon. */
47  return $word;
48  }
49 
57  public function ucfirst( $string ) {
58  if ( substr( $string, 0, 1 ) === 'i' ) {
59  return 'İ' . substr( $string, 1 );
60  }
61  return parent::ucfirst( $string );
62  }
63 
71  function lcfirst( $string ) {
72  if ( substr( $string, 0, 1 ) === 'I' ) {
73  return 'ı' . substr( $string, 1 );
74  }
75  return parent::lcfirst( $string );
76  }
77 
78 }
LanguageKaa\ucfirst
ucfirst( $string)
It fixes issue with ucfirst for transforming 'i' to 'İ'.
Definition: LanguageKaa.php:57
LanguageKaa\convertGrammar
convertGrammar( $word, $case)
Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms.
Definition: LanguageKaa.php:41
LanguageKaa
Karakalpak (Qaraqalpaqsha)
Definition: LanguageKaa.php:29
$wgGrammarForms
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Definition: DefaultSettings.php:2965
LanguageKaa\lcfirst
lcfirst( $string)
It fixes issue with lcfirst for transforming 'I' to 'ı'.
Definition: LanguageKaa.php:71
Language
Internationalisation code.
Definition: Language.php:37