[wp-trac] [WordPress Trac] #10373: Proper number formatting related to i18n

WordPress Trac noreply at wordpress.org
Tue Dec 1 07:58:02 UTC 2015


#10373: Proper number formatting related to i18n
---------------------------------+-----------------------------
 Reporter:  honza.skypala        |       Owner:  SergeyBiryukov
     Type:  defect (bug)         |      Status:  reopened
 Priority:  normal               |   Milestone:  Future Release
Component:  I18N                 |     Version:  2.8.1
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 4.5-early  |     Focuses:
---------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => has-patch 4.5-early


Comment:

 [attachment:10373.3.diff] is another, more thoroughly tested approach:

 * If PHP version is 5.4.0 or greater, a regular space as a thousands
 separator is replaced with a non-breaking space, decoded using the
 `blog_charset` option. We could probably skip `html_entity_decode()` and
 use the ` ` entity directly, but I think that might cause issues in
 themes that do weird things like using `substr()` instead of
 `wp_trim_words()` for the excerpt.
 * If PHP version is 5.2.x or 5.3.x, ` ` or ` ` as a thousands
 separator is replaced with a regular space, as multiple bytes are not
 supported there.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/10373#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list