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