Support » Fixing WordPress » How to internationalize number format

  • Hi everybody!

    In my own theme, I want to internationalise number format like this:
    if (0 < $numtags) $numtags = number_format($numtags)

    For French (see: http://fr2.php.net/number_format), I write:
    if (0 < $numtags) $numtags = number_format($numtags , 0, ',', ' ');

    But how to internationalize this string for other languages and translate with PoEdit?

    Thanks.

    V.

Viewing 1 replies (of 1 total)
  • Ok! Resolved!

    … With replace…

    if (0 < $numtags) $numtags = number_format($numtags , 0, ',', ' ');

    by…

    if (0 < $numtags) $numcats= number_format_i18n($numtags);

    Great!

    V.

Viewing 1 replies (of 1 total)
  • The topic ‘How to internationalize number format’ is closed to new replies.