Plugin Author
Hax
(@hax)
will do, thanks for the feedback
Actually, whether it should be a space, comma or dot is an internationalization issue and should depend on the chosen language of the installation.
It’d be best to use the WP proprietary number_format_i18n( $number, $decimals = 0 ) function to get this right for every language in one go 😉
So, the code would then become:
On line 241
replace: $output .= '<span class="pop-count">('.preg_replace("/(?<=\d)(?=(\d{3})+(?!\d))/"," ",$post->views).')</span>';
with: $output .= '<span class="pop-count">('.number_format_i18n( $post->views, 0 ).')</span>';
Hope this helps!
Smile,
Juliette
Agreed Juliette – but I found making a single character change was a lot simpler than figuring out internationalisation.. Thank you for doing the leg work (or just having the knowledge) to do it properly.