Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11632 closed defect (bug) (invalid)

number_format_i18n() doesn't work correctly in catalan language

Reported by: cubells's profile Cubells Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: reporter-feedback
Focuses: Cc:

Description

It's simple:

echo number_format_i18n("4121124");

The output is now:
4n121n124

when it should be:

4.121.124

Change History (4)

#1 @demetris
15 years ago

  • Cc dkikizas@… added
  • Keywords reporter-feedback added

This is because they are not correctly translated. In the ca.po from wordpress-2.9-ca.zip they are translated like this:

#. translators: $decimals argument for http://php.net/number_format, default is 0
#: wp-includes/locale.php:182
msgid "number_format_decimals"
msgstr "number_format_decimals"

#. translators: $dec_point argument for http://php.net/number_format, default is .
#: wp-includes/locale.php:186
msgid "number_format_decimal_point"
msgstr "number_format_decimal_point"

#. translators: $thousands_sep argument for http://php.net/number_format, default is ,
#: wp-includes/locale.php:190
msgid "number_format_thousands_sep"
msgstr "number_format_decimal_point"

While, for a language that follows a convention that is, say, the reverse of American English, the strings should read like this:

#. translators: $decimals argument for http://php.net/number_format, default is 0
#: wp-includes/locale.php:182
msgid "number_format_decimals"
msgstr "0"

#. translators: $dec_point argument for http://php.net/number_format, default is .
#: wp-includes/locale.php:186
msgid "number_format_decimal_point"
msgstr ","

#. translators: $thousands_sep argument for http://php.net/number_format, default is ,
#: wp-includes/locale.php:190
msgid "number_format_thousands_sep"
msgstr "."

#2 @Cubells
15 years ago

Ok!

Thaks a lot!

#3 @demetris
15 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Cheers! :-)

#4 @sirzooro
15 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.