2007-11-26 19:51:52 +00:00
|
|
|
|
<?php
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
|
|
2007-11-26 19:51:52 +00:00
|
|
|
|
/** Karakalpak (Qaraqalpaqsha)
|
|
|
|
|
|
*
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
|
* @ingroup Language
|
2007-11-26 19:51:52 +00:00
|
|
|
|
*/
|
|
|
|
|
|
class LanguageKaa extends Language {
|
|
|
|
|
|
|
|
|
|
|
|
# Convert from the nominative form of a noun to some other case
|
|
|
|
|
|
# Invoked with {{GRAMMAR:case|word}}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms
|
|
|
|
|
|
*/
|
|
|
|
|
|
function convertGrammar( $word, $case ) {
|
|
|
|
|
|
global $wgGrammarForms;
|
|
|
|
|
|
if ( isset( $wgGrammarForms['kaa'][$case][$word] ) ) {
|
|
|
|
|
|
return $wgGrammarForms['kaa'][$case][$word];
|
|
|
|
|
|
}
|
|
|
|
|
|
/* Full code of function convertGrammar() is in development. Updates coming soon. */
|
|
|
|
|
|
return $word;
|
|
|
|
|
|
}
|
2008-05-28 19:35:02 +00:00
|
|
|
|
/*
|
|
|
|
|
|
* It fixes issue with ucfirst for transforming 'i' to 'İ'
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
2007-11-26 19:51:52 +00:00
|
|
|
|
function ucfirst ( $string ) {
|
|
|
|
|
|
if ( $string[0] == 'i' ) {
|
2008-05-28 19:35:02 +00:00
|
|
|
|
$string = 'İ' . substr( $string, 1 );
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$string = parent::ucfirst( $string );
|
|
|
|
|
|
}
|
|
|
|
|
|
return $string;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
* It fixes issue with lcfirst for transforming 'I' to 'ı'
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
function lcfirst ( $string ) {
|
|
|
|
|
|
if ( $string[0] == 'I' ) {
|
|
|
|
|
|
$string = 'ı' . substr( $string, 1 );
|
2007-11-26 19:51:52 +00:00
|
|
|
|
} else {
|
2008-05-28 19:35:02 +00:00
|
|
|
|
$string = parent::lcfirst( $string );
|
2007-11-26 19:51:52 +00:00
|
|
|
|
}
|
2008-05-28 19:35:02 +00:00
|
|
|
|
return $string;
|
2007-11-26 19:51:52 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* Avoid grouping whole numbers between 0 to 9999
|
|
|
|
|
|
*/
|
|
|
|
|
|
function commafy( $_ ) {
|
|
|
|
|
|
if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
|
|
|
|
|
|
return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev($_) ) );
|
|
|
|
|
|
} else {
|
|
|
|
|
|
return $_;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2008-05-28 19:35:02 +00:00
|
|
|
|
}
|