WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#11632 closed defect (bug) (invalid)

number_format_i18n() doesn't work correctly in catalan language

Reported by: 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)

comment:1 demetris4 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 "."

comment:2 Cubells4 years ago

Ok!

Thaks a lot!

comment:3 demetris4 years ago

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

Cheers! :-)

comment:4 sirzooro4 years ago

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