MediaWiki  master
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 
42  public function convertGrammar( $word, $case ) {
43  global $wgGrammarForms;
44  if ( isset( $wgGrammarForms['kaa'][$case][$word] ) ) {
45  return $wgGrammarForms['kaa'][$case][$word];
46  }
47  /* Full code of function convertGrammar() is in development. Updates coming soon. */
48  return $word;
49  }
50 
58  public function ucfirst( $string ) {
59  if ( substr( $string, 0, 1 ) === 'i' ) {
60  return 'İ' . substr( $string, 1 );
61  }
62  return parent::ucfirst( $string );
63  }
64 
72  public function lcfirst( $string ) {
73  if ( substr( $string, 0, 1 ) === 'I' ) {
74  return 'ı' . substr( $string, 1 );
75  }
76  return parent::lcfirst( $string );
77  }
78 
79 }
LanguageKaa\ucfirst
ucfirst( $string)
It fixes issue with ucfirst for transforming 'i' to 'İ'.
Definition: LanguageKaa.php:58
LanguageKaa\convertGrammar
convertGrammar( $word, $case)
Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms.
Definition: LanguageKaa.php:42
LanguageKaa
Karakalpak (Qaraqalpaqsha)
Definition: LanguageKaa.php:29
$wgGrammarForms
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Definition: DefaultSettings.php:3119
LanguageKaa\lcfirst
lcfirst( $string)
It fixes issue with lcfirst for transforming 'I' to 'ı'.
Definition: LanguageKaa.php:72
Language
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition: Language.php:41