API: difftoprev fails when 'rvprop=ids' is not specified. Sort of gross way to fix...
[mediawiki.git] / languages / classes / LanguageKu_ku.php
blobd8be6d9bec9dc045faff2069d7f780f58098d8f8
1 <?php
2 /** Kurdish
5 * @addtogroup Language
6 */
9 class LanguageKu_ku extends Language {
11 /** # Convert from the nominative form of a noun to some other case
12 # Invoked with {{GRAMMAR:case|word}}
13 /**
14 * Cases:
16 * From Kazakh interface, not needed at the moment, maybe later
18 function convertGrammar( $word, $case ) {
19 return $word;
22 /**
23 * Avoid grouping whole numbers between 0 to 9999
25 function commafy( $_ ) {
27 if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
28 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev($_) ) );
29 } else {
30 return $_;