Merge pull request #1692 from matrix-org/t3chguy/pr-revival/turt2live/single_unsent

[revived] Singularise unsent message prompt, if applicable
This commit is contained in:
David Baker 2018-01-05 12:24:06 +00:00 committed by GitHub
commit 845dda8f48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 47 additions and 45 deletions

View file

@ -303,11 +303,11 @@ module.exports = React.createClass({
) {
title = unsentMessages[0].error.data.error;
} else {
title = _t("Some of your messages have not been sent.");
title = _t('%(count)s of your messages have not been sent.', { count: unsentMessages.length });
}
content = _t("<resendText>Resend all</resendText> or <cancelText>cancel all</cancelText> now. " +
content = _t("%(count)s <resendText>Resend all</resendText> or <cancelText>cancel all</cancelText> now. " +
"You can also select individual messages to resend or cancel.",
{},
{ count: unsentMessages.length },
{
'resendText': (sub) =>
<a className="mx_RoomStatusBar_resend_link" key="resend" onClick={this._onResendAllClick}>{ sub }</a>,