MediaWiki  1.23.3
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  function ucfirst( $string ) {
58  if ( substr( $string, 0, 1 ) === 'i' ) {
59  return 'İ' . substr( $string, 1 );
60  } else {
61  return parent::ucfirst( $string );
62  }
63  }
64 
72  function lcfirst( $string ) {
73  if ( substr( $string, 0, 1 ) === 'I' ) {
74  return 'ı' . substr( $string, 1 );
75  } else {
76  return parent::lcfirst( $string );
77  }
78  }
79 
87  function commafy( $_ ) {
88  if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
89  return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
90  } else {
91  return $_;
92  }
93  }
94 
95 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
LanguageKaa\commafy
commafy( $_)
Avoid grouping whole numbers between 0 to 9999.
Definition: LanguageKaa.php:87
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
LanguageKaa\lcfirst
lcfirst( $string)
It fixes issue with lcfirst for transforming 'I' to 'ı'.
Definition: LanguageKaa.php:72
Language
Internationalisation code.
Definition: Language.php:74