Restructured the languages directory, to avoid problems when people untar MW 1.8...
[lhc/web/wiklou.git] / languages / classes / LanguageEt.php
1 <?php
2 /** Estonian (Eesti)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 *
7 */
8
9 class LanguageEt extends Language {
10 /**
11 * Avoid grouping whole numbers between 0 to 9999
12 */
13 function commafy($_) {
14 if (!preg_match('/^\d{1,4}$/',$_)) {
15 return strrev((string)preg_replace('/(\d{3})(?=\d)(?!\d*\.)/','$1,',strrev($_)));
16 } else {
17 return $_;
18 }
19 }
20 }
21 ?>