WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a views counter on each post. When it reaches for example 1000, it adds a dot as the thousand separator, the result is 1.000. This is odd in my language, I should have a space as separator or nothing.

How can I change that?!

share|improve this question

Use number_format_i18n( $number ). It will format the number with respect to the current blog’s language setting. It is a wrapper for PHP’s native number_format().

share|improve this answer
Thank you, your answer helped, but to fix this I had to change wp-includes/functions.php. – PauloP Jul 4 '12 at 11:14
No, that’s wrong. The language separator is probably just missing in your language files. Add it there, do not create a fork of WordPress just for this. – toscho Jul 4 '12 at 11:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.