Changeset 35372
- Timestamp:
- 10/23/2015 11:50:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/locale.php
r35336 r35372 177 177 178 178 /* translators: $thousands_sep argument for http://php.net/number_format, default is , */ 179 $trans = __('number_format_thousands_sep'); 180 $this->number_format['thousands_sep'] = ('number_format_thousands_sep' == $trans) ? ',' : $trans; 179 $thousands_sep = __( 'number_format_thousands_sep' ); 180 // Replace space with a non-breaking space to avoid wrapping. Also replace entities with actual character. 181 $thousands_sep = str_replace( array( ' ', ' ', ' ' ), "\xA0", $thousands_sep ); 182 183 $this->number_format['thousands_sep'] = ( 'number_format_thousands_sep' === $thousands_sep ) ? ',' : $thousands_sep; 181 184 182 185 /* translators: $dec_point argument for http://php.net/number_format, default is . */ 183 $trans = __('number_format_decimal_point'); 184 $this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans; 186 $decimal_point = __( 'number_format_decimal_point' ); 187 188 $this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point; 185 189 186 190 // Set text direction.
Note: See TracChangeset
for help on using the changeset viewer.