Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
May 03, 2025 12:17 pm
5 Replies
May 05, 2025 9:42 am
Hi,
Could you please provide us with a full-page screenshot to help us better understand the issue?
May 06, 2025 12:57 pm
Hello,
In the French, Belgian, and Swiss systems, the decimal separator is represented by a comma and the thousands separator by a space.
May 13, 2025 3:21 pm
Hello,
The problem stems from the fact that WordPress uses the PHP number_format function instead of the WordPress number_format_i18n function (in the functions.php file).
function wpforo_print_number( $n, $echo = false ) { $x = str_replace( ",", "", $n ); $x = intval( $x ); $n = 0 + $x; $number = 0; if( ! is_numeric( $n ) ) return false; if( $n > 1000000000000 ) { $number = round( ( $n / 1000000000000 ), 1 ) . ' ' . str_replace( '{number}', '', wpforo_phrase( '{number}T', false ) ); } else if( $n > 1000000000 ) { $number = round( ( $n / 1000000000 ), 1 ) . ' ' . str_replace( '{number}', '', wpforo_phrase( '{number}B', false ) ); } else if( $n > 1000000 ) { $number = round( ( $n / 1000000 ), 1 ) . ' ' . str_replace( '{number}', '', wpforo_phrase( '{number}M', false ) ); } else if( $n > 10000 ) $number = round( ( $n / 1000 ), 1 ) . ' ' . str_replace( '{number}', '', wpforo_phrase( '{number}K', false ) ); $number = ( $number ) ? $number : number_format( $n ); if( $echo ) { echo $number; } else { return $number; } }
this should be
function wpforo_print_number( $n, $echo = false ) { $x = str_replace( ",", "", $n ); $x = intval( $x ); $n = 0 + $x; $number = 0; if( ! is_numeric( $n ) ) return false; if( $n > 1000000000000 ) { $number = round( ( $n / 1000000000000 ), 1 ) . ' ' . str_replace( '{number}', '', wpforo_phrase( '{number}T', false ) ); } else if( $n > 1000000000 ) { $number = round( ( $n / 1000000000 ), 1 ) . ' ' . str_replace( '{number}', '', wpforo_phrase( '{number}B', false ) ); } else if( $n > 1000000 ) { $number = round( ( $n / 1000000 ), 1 ) . ' ' . str_replace( '{number}', '', wpforo_phrase( '{number}M', false ) ); } else if( $n > 10000 ) $number = round( ( $n / 1000 ), 1 ) . ' ' . str_replace( '{number}', '', wpforo_phrase( '{number}K', false ) ); $number = ( $number ) ? $number : number_format_i18n( $n ); if( $echo ) { echo $number; } else { return $number; } }