Localisation updates Kazakh translations
[lhc/web/wiklou.git] / languages / classes / LanguageKu_ku.php
1 <?php
2 /** Kurdish
3 *
4 *
5 * @addtogroup Language
6 */
7
8
9 class LanguageKu_ku extends Language {
10
11 /** # Convert from the nominative form of a noun to some other case
12 # Invoked with {{GRAMMAR:case|word}}
13 /**
14 * Cases:
15 *
16 * From Kazakh interface, not needed at the moment, maybe later
17 */
18 function convertGrammar( $word, $case ) {
19 return $word;
20 }
21
22 /**
23 * Avoid grouping whole numbers between 0 to 9999
24 */
25 function commafy( $_ ) {
26
27 if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
28 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev($_) ) );
29 } else {
30 return $_;
31 }
32 }
33 }
34
35