Bug 1143629 - Contacts import incorrectly displays all forms of plural strings. r=mikedeboer, a=lmandel
This commit is contained in:
@@ -455,6 +455,7 @@ loop.contacts = (function(_, mozL10n) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.props.notifications.successL10n("import_contacts_success_message", {
|
this.props.notifications.successL10n("import_contacts_success_message", {
|
||||||
|
num: stats.total,
|
||||||
total: stats.total
|
total: stats.total
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -455,6 +455,7 @@ loop.contacts = (function(_, mozL10n) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.props.notifications.successL10n("import_contacts_success_message", {
|
this.props.notifications.successL10n("import_contacts_success_message", {
|
||||||
|
num: stats.total,
|
||||||
total: stats.total
|
total: stats.total
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -277,7 +277,8 @@ describe("loop.contacts", function() {
|
|||||||
sinon.assert.calledWithExactly(
|
sinon.assert.calledWithExactly(
|
||||||
notifications.successL10n,
|
notifications.successL10n,
|
||||||
"import_contacts_success_message",
|
"import_contacts_success_message",
|
||||||
{total: 42});
|
// Num is for the plural selection.
|
||||||
|
{num: 42, total: 42});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should notify the end user from any encountered error", function() {
|
it("should notify the end user from any encountered error", function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user