[wp-trac] [WordPress Trac] #19593: Incorrect plugin ratings on decimal comma locales

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 17 22:59:24 UTC 2011


#19593: Incorrect plugin ratings on decimal comma locales
----------------------------+-----------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  3.4
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------
 On
 [http://en.wikipedia.org/wiki/Decimal_mark#Countries_using_Arabic_numerals_with_decimal_comma
 some PHP locales], comma is used as a decimal separator.

 This creates visual problems with plugin ratings and tag cloud on Install
 Plugins screen (see the screenshot).

 Browser fails to handle `font-size` attributes with commas properly, as
 CSS specification only supports decimal point as a separator:
 http://www.w3.org/TR/CSS21/syndata.html#length-units

 To reproduce, add this to `wp-config.php`:
 {{{
 setlocale(LC_ALL, 'fr_FR');
 }}}
 `unserialize()` in `plugins_api()` would then return values with commas,
 even if WP.org API returns them with points:
 http://core.trac.wordpress.org/browser/tags/3.3/wp-admin/includes/plugin-
 install.php#L48

 Related: #18460

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19593>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list