MediaWiki REL1_30
LanguagePl.php
Go to the documentation of this file.
1<?php
29class LanguagePl extends Language {
34 function commafy( $_ ) {
35 if ( !preg_match( '/^\-?\d{1,4}(\.\d+)?$/', $_ ) ) {
36 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
37 } else {
38 return $_;
39 }
40 }
41}
Polish (polski)
Internationalisation code.
Definition Language.php:35