Added result properties to action=paraminfo
[lhc/web/wiklou.git] / languages / classes / LanguageEt.php
1 <?php
2
3 /** Estonian (Eesti)
4 *
5 * @ingroup Language
6 *
7 */
8 class LanguageEt extends Language {
9 /**
10 * Avoid grouping whole numbers between 0 to 9999
11 *
12 * @param $_ string
13 *
14 * @return string
15 */
16 function commafy( $_ ) {
17 if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
18 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
19 } else {
20 return $_;
21 }
22 }
23 }