Fix $name$ in confirmation dialogs

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

// FREEBIE
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent a6af40e9f9
commit 02df917f3a
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -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]);
}
}

Loading…
Cancel
Save