MediaWiki  REL1_20
LanguageEt.php
Go to the documentation of this file.
00001 <?php
00029 class LanguageEt extends Language {
00037         function commafy( $_ ) {
00038                 if ( !preg_match( '/^\d{1,4}$/', $_ ) ) {
00039                         return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
00040                 } else {
00041                         return $_;
00042                 }
00043         }
00044 }