Courage Posted July 14, 2014 Share Posted July 14, 2014 (edited) By default, numbers are formatted with `,` character. To change it with `.` or ` `, you should edit your language locale, but there's another way to do that. Open <forum_path> / admin / sources / classes / class_localization.php We have 3 options: 1. Format with `,` character: Replace public function formatNumber( $number, $places=0 ) { return is_numeric( $number ) ? str_replace( 'x', $this->local_data['thousands_sep'], number_format( $number, $places, $this->local_data['decimal_point'], 'x' ) ) : 0; } with public function formatNumber( $number, $places=0 ) { return number_format($number, NULL, '', ','); } 2. Format with `.` character: Replace public function formatNumber( $number, $places=0 ) { return is_numeric( $number ) ? str_replace( 'x', $this->local_data['thousands_sep'], number_format( $number, $places, $this->local_data['decimal_point'], 'x' ) ) : 0; } with public function formatNumber( $number, $places=0 ) { return number_format($number, NULL, '', '.'); } 3. Format with ` ` (space) character: Replace public function formatNumber( $number, $places=0 ) { return is_numeric( $number ) ? str_replace( 'x', $this->local_data['thousands_sep'], number_format( $number, $places, $this->local_data['decimal_point'], 'x' ) ) : 0; } with public function formatNumber( $number, $places=0 ) { return number_format($number, NULL, '', ' '); } Edited July 14, 2014 by Courage 3 3 Link to comment Share on other sites More sharing options...
SpLaSH.Xd Posted July 14, 2014 Share Posted July 14, 2014 Thanks. Link to comment Share on other sites More sharing options...
VPEC Posted July 18, 2014 Share Posted July 18, 2014 ty Link to comment Share on other sites More sharing options...
Recommended Posts