Bug 615479 - Password manager prompts can now ask a more complete question [r=dolske]

This commit is contained in:
Paul O’Shannessy 2011-11-28 13:02:47 -08:00
Родитель ce2f215b38
Коммит ae077178d1
3 изменённых файлов: 18 добавлений и 18 удалений

Просмотреть файл

@ -815,11 +815,11 @@ LoginManagerPrompter.prototype = {
if (aLogin.username) {
var displayUser = this._sanitizeUsername(aLogin.username);
notificationText = this._getLocalizedString(
"rememberPasswordText",
"rememberPasswordMsg",
[displayUser, displayHost]);
} else {
notificationText = this._getLocalizedString(
"rememberPasswordTextNoUsername",
"rememberPasswordMsgNoUsername",
[displayHost]);
}
@ -947,11 +947,11 @@ LoginManagerPrompter.prototype = {
if (aLogin.username) {
var displayUser = this._sanitizeUsername(aLogin.username);
dialogText = this._getLocalizedString(
"rememberPasswordText",
"rememberPasswordMsg",
[displayUser, displayHost]);
} else {
dialogText = this._getLocalizedString(
"rememberPasswordTextNoUsername",
"rememberPasswordMsgNoUsername",
[displayHost]);
}
@ -1018,11 +1018,11 @@ LoginManagerPrompter.prototype = {
var notificationText;
if (aOldLogin.username)
notificationText = this._getLocalizedString(
"updatePasswordText",
"updatePasswordMsg",
[aOldLogin.username]);
else
notificationText = this._getLocalizedString(
"updatePasswordTextNoUser");
"updatePasswordMsgNoUser");
var changeButtonText =
this._getLocalizedString("notifyBarUpdateButtonText");
@ -1100,11 +1100,11 @@ LoginManagerPrompter.prototype = {
var dialogText;
if (aOldLogin.username)
dialogText = this._getLocalizedString(
"updatePasswordText",
"updatePasswordMsg",
[aOldLogin.username]);
else
dialogText = this._getLocalizedString(
"updatePasswordTextNoUser");
"updatePasswordMsgNoUser");
var dialogTitle = this._getLocalizedString(
"passwordChangeTitle");

Просмотреть файл

@ -346,7 +346,7 @@ function checkTest() {
ok(popup, "got notification popup");
// Check the text, which comes from the localized saveLoginText string.
notificationText = popup.message;
expectedText = /^Remember password for \"notifyu1\" on example.org\?$/;
expectedText = /^Would you like to remember the password for \"notifyu1\" on example.org\?$/;
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
popup.remove();
break;
@ -359,7 +359,7 @@ function checkTest() {
ok(popup, "got notification popup");
// Check the text, which comes from the localized saveLoginText string.
notificationText = popup.message;
expectedText = /^Remember password for \"nowisthetimeforallgoodmentocom[^e]\" on example.org\?$/;
expectedText = /^Would you like to remember the password for \"nowisthetimeforallgoodmentocom[^e]\" on example.org\?$/;
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
popup.remove();
break;
@ -372,7 +372,7 @@ function checkTest() {
ok(popup, "got notification popup");
// Check the text, which comes from the localized saveLoginTextNoUser string.
notificationText = popup.message;
expectedText = /^Remember password on example.org\?$/;
expectedText = /^Would you like to remember the password on example.org\?$/;
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
popup.remove();
break;

Просмотреть файл

@ -39,13 +39,13 @@
rememberValue = Use Password Manager to remember this value.
rememberPassword = Use Password Manager to remember this password.
savePasswordTitle = Confirm
# LOCALIZATION NOTE (rememberPasswordText):
# LOCALIZATION NOTE (rememberPasswordMsg):
# 1st string is the username for the login, 2nd is the login's hostname.
# Note that long usernames may be truncated.
rememberPasswordText = Remember password for "%1$S" on %2$S?
# LOCALIZATION NOTE (rememberPasswordTextNoUsername):
rememberPasswordMsg = Would you like to remember the password for "%1$S" on %2$S?
# LOCALIZATION NOTE (rememberPasswordMsgNoUsername):
# String is the login's hostname.
rememberPasswordTextNoUsername = Remember password on %S?
rememberPasswordMsgNoUsername = Would you like to remember the password on %S?
notNowButtonText = &Not Now
notifyBarNotNowButtonText = Not Now
notifyBarNotNowButtonAccessKey = N
@ -56,10 +56,10 @@ rememberButtonText = &Remember
notifyBarRememberPasswordButtonText = Remember Password
notifyBarRememberPasswordButtonAccessKey = R
passwordChangeTitle = Confirm Password Change
# LOCALIZATION NOTE (updatePasswordText):
# LOCALIZATION NOTE (updatePasswordMsg):
# String is the username for the login.
updatePasswordText = Update saved password for "%S"?
updatePasswordTextNoUser = Update saved password?
updatePasswordMsg = Would you like to update the saved password for "%S"?
updatePasswordMsgNoUser = Would you like to update the saved password?
notifyBarUpdateButtonText = Update Password
notifyBarUpdateButtonAccessKey = U
notifyBarDontChangeButtonText = Don't Change