Ticket #10373: 10373.2.diff
File 10373.2.diff, 1.4 KB (added by , 9 years ago) |
---|
-
src/wp-includes/locale.php
165 165 // See http://php.net/number_format 166 166 167 167 /* translators: $thousands_sep argument for http://php.net/number_format, default is , */ 168 $trans = __('number_format_thousands_sep'); 169 $this->number_format['thousands_sep'] = ('number_format_thousands_sep' == $trans) ? ',' : $trans; 168 $thousands_sep = __( 'number_format_thousands_sep' ); 169 // Replace space with a non-breaking space to avoid wrapping. Also replace entities with actual character. 170 $thousands_sep = str_replace( array( ' ', ' ', ' ' ), "\xA0", $thousands_sep ); 170 171 172 $this->number_format['thousands_sep'] = ( 'number_format_thousands_sep' === $thousands_sep ) ? ',' : $thousands_sep; 173 171 174 /* translators: $dec_point argument for http://php.net/number_format, default is . */ 172 $trans = __('number_format_decimal_point'); 173 $this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans; 175 $decimal_point = __( 'number_format_decimal_point' ); 174 176 177 $this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point; 178 175 179 // Set text direction. 176 180 if ( isset( $GLOBALS['text_direction'] ) ) 177 181 $this->text_direction = $GLOBALS['text_direction'];