Use multiplication sign instead of asterisk

This commit is contained in:
Mikko Koski 2017-06-30 11:08:25 +03:00 committed by Vesa Luusua
parent 096af7c766
commit 7ed24991af
3 changed files with 21 additions and 12 deletions

View file

@ -4,7 +4,7 @@
*/
import _ from 'lodash';
import React, { PropTypes } from 'react';
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
import { FormattedMessage, FormattedHTMLMessage, intlShape, injectIntl } from 'react-intl';
import Decimal from 'decimal.js';
import classNames from 'classnames';
import config from '../../config';
@ -59,7 +59,7 @@ export const BookingBreakdownComponent = props => {
const nightCount = nightPurchase.quantity.toFixed();
const nightCountMessage = (
<FormattedMessage id="BookingBreakdown.nightCount" values={{ count: nightCount }} />
<FormattedHTMLMessage id="BookingBreakdown.nightCount" values={{ count: nightCount }} />
);
const currencyConfig = config.currencyConfig;

View file

@ -32,9 +32,12 @@ exports[`BookingBreakdown customer transaction data matches snapshot 1`] = `
</span>
<span
className={undefined}>
<span>
* 2 nights
</span>
<span
dangerouslySetInnerHTML={
Object {
"__html": "&times; 2 nights",
}
} />
</span>
</div>
<hr
@ -89,9 +92,12 @@ exports[`BookingBreakdown pretransaction data matches snapshot 1`] = `
</span>
<span
className={undefined}>
<span>
* 2 nights
</span>
<span
dangerouslySetInnerHTML={
Object {
"__html": "&times; 2 nights",
}
} />
</span>
</div>
<hr
@ -146,9 +152,12 @@ exports[`BookingBreakdown provider transaction data matches snapshot 1`] = `
</span>
<span
className={undefined}>
<span>
* 2 nights
</span>
<span
dangerouslySetInnerHTML={
Object {
"__html": "&times; 2 nights",
}
} />
</span>
</div>
<div

View file

@ -10,7 +10,7 @@
"AuthorInfo.host": "Hosted by {firstName} {lastName}",
"BookingBreakdown.bookingPeriod": "{bookingStart} - {bookingEnd}",
"BookingBreakdown.commission": "Saunatime fee:",
"BookingBreakdown.nightCount": "* {count, number} {count, plural, one {night} other {nights}}",
"BookingBreakdown.nightCount": "&times; {count, number} {count, plural, one {night} other {nights}}",
"BookingBreakdown.pricePerNight": "Price per night",
"BookingBreakdown.total": "Total price",
"BookingDatesForm.bookingEndTitle": "End date",