This week-end, my forum went pass 10 000 posts. But the display is a bit strange.
What can I do to improve that ?
I found the place where that number is formatted:
/wp-content/plugins/wpforo/includes/functions.php:function wpforo_print_number
and modified it by commenting out the nested if statements. now I have what I wanted.
This is a translation issue. The phrase is incorrectly translated. The {number} should not be translated, this is a key for the number conversion. Now it's translated in the translation file and the functions cannot detect to replace it. You should install Loco Translate plugin and find it in the translation file, then change the translated {numéro} to {number}
You're right, it's a translation issue. So, what I did finally, was to NOT translate that word in this function, because it should not be. I don't know if "number" is used in another context in which "numéro" would be correct, but if it is the case, what I did preserve the translation in other places.
if( $n > 1000000000000 ) { $number = round( ( $n / 1000000000000 ), 1 ) . ' ' . str_replace( '{number}', '', '{number}T' ); } else if( $n > 1000000000 ) { $number = round( ( $n / 1000000000 ), 1 ) . ' ' . str_replace( '{number}', '', '{number}B' ); } else if( $n > 1000000 ) { $number = round( ( $n / 1000000 ), 1 ) . ' ' . str_replace( '{number}', '', '{number}M' ); } else if( $n > 10000 ){ $number = round( ( $n / 1000 ), 1 ) . ' ' . str_replace( '{number}', '', '{number}K' ); } $number = ( $number ) ? $number : number_format( $n );
Now, I understand this little modification could be overwritten by an update, so is there a way to put that somewhere else ? An even better solution would be to incorporate this change to WPForo to make this "problem" disappear for good.
The phrase is incorrectly translated.
Sorry, in fact, the phrase is CORRECTLY translated. Thing is, it's translated in a function where it should NOT be. In my book the word for that is "bug".