Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/23/2014 in all areas

  1. 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, '', ' '); }
    1 point
This leaderboard is set to New York/GMT-05:00
×
×
  • Create New...