Restructured the languages directory, to avoid problems when people untar MW 1.8...
[lhc/web/wiklou.git] / languages / classes / LanguageKsh.php
1 <?php
2 /** Ripuarian (RipoarÄ—sh)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 *
7 * @author Purodha Blissenbach
8 */
9
10 class LanguageKsh extends Language {
11 /**
12 * Avoid grouping whole numbers between 0 to 9999
13 */
14 public function commafy( $_ ) {
15 if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
16 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1&nbsp;', strrev( $_ ) ) );
17 } else {
18 return $_;
19 }
20 }
21 /**
22 * Handle cases of (1, other, 0) or (1, other)
23 */
24 public function convertPlural( $count, $w1, $w2, $w3 ) {
25 $count = str_replace (' ', '', $count);
26 if ( $count == '1' ) {
27 return $w1;
28 } elseif ( $count == '0' && $w3 ) {
29 return $w3;
30 } else {
31 return $w2;
32 }
33 }
34 }
35 ?>