Skip to content
Snippets Groups Projects
Commit e1f87e34 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

adorn confirmations on main site (like 'd00d, sure you wanna cancel') with...

adorn confirmations on main site (like 'd00d, sure you wanna cancel') with gettext() for proper extraction and substition
parent e9cf866d
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,8 @@ BrowserID.manageAccount = (function() {
displayStoredEmails(oncomplete);
}
else if (_.size(emails) > 1) {
if (confirmAction("Remove " + email + " from your BrowserID?")) {
if (confirmAction(format(gettext("Remove %(email) from your BrowserID?"),
{ email: email }))) {
user.removeEmail(email, function() {
displayStoredEmails(oncomplete);
}, pageHelpers.getFailure(errors.removeEmail, oncomplete));
......@@ -59,7 +60,7 @@ BrowserID.manageAccount = (function() {
}
}
else {
if (confirmAction("Removing the last address will cancel your BrowserID account.\nAre you sure you want to continue?")) {
if (confirmAction(gettext("Removing the last address will cancel your BrowserID account.\nAre you sure you want to continue?"))) {
user.cancelUser(function() {
doc.location="/";
complete();
......@@ -92,7 +93,7 @@ BrowserID.manageAccount = (function() {
}
function cancelAccount(oncomplete) {
if (confirmAction("Are you sure you want to cancel your BrowserID account?")) {
if (confirmAction(gettext("Are you sure you want to cancel your BrowserID account?"))) {
user.cancelUser(function() {
doc.location="/";
oncomplete && oncomplete();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment