WordPress.org

Make WordPress Core

Changeset 35522


Ignore:
Timestamp:
11/04/2015 09:38:43 PM (4 years ago)
Author:
ocean90
Message:

Revert [35372] because of possible encoding issues, needs more investigation.

See #10373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/locale.php

    r35517 r35522  
    191191
    192192        /* translators: $thousands_sep argument for http://php.net/number_format, default is , */
    193         $thousands_sep = __( 'number_format_thousands_sep' );
    194         // Replace space with a non-breaking space to avoid wrapping. Also replace entities with actual character.
    195         $thousands_sep = str_replace( array( ' ', ' ', ' ' ), "\xA0", $thousands_sep );
    196 
    197         $this->number_format['thousands_sep'] = ( 'number_format_thousands_sep' === $thousands_sep ) ? ',' : $thousands_sep;
     193        $trans = __('number_format_thousands_sep');
     194        $this->number_format['thousands_sep'] = ('number_format_thousands_sep' == $trans) ? ',' : $trans;
    198195
    199196        /* translators: $dec_point argument for http://php.net/number_format, default is . */
    200         $decimal_point = __( 'number_format_decimal_point' );
    201 
    202         $this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point;
     197        $trans = __('number_format_decimal_point');
     198        $this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans;
    203199
    204200        // Set text direction.
Note: See TracChangeset for help on using the changeset viewer.