Fix $name$ in confirmation dialogs

Our i18n shim supports multiple substitutions if you give it an array of strings
to use as replacements.

// FREEBIE
This commit is contained in:
lilia 2017-06-23 10:37:51 -07:00 committed by Scott Nonnenberg
parent a6af40e9f9
commit 02df917f3a
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -846,10 +846,11 @@
message = i18n('changedRecentlyMultiple');
}
} else {
var contactName = contacts.at(0).getTitle();
if (isUnverified) {
message = i18n('changedSinceVerified', contacts.at(0).getTitle());
message = i18n('changedSinceVerified', [contactName, contactName]);
} else {
message = i18n('changedRecently', contacts.at(0).getTitle());
message = i18n('changedRecently', [contactName, contactName]);
}
}