Bug 465692 - Update the text of the Private Browsing prompt; r=gavin ui-r=beltzner,faaborg

This commit is contained in:
Ehsan Akhgari 2009-01-01 23:14:08 +03:30
Родитель 04254af856
Коммит 8db25fefe7
2 изменённых файлов: 9 добавлений и 1 удалений

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

@ -6873,7 +6873,14 @@ let gPrivateBrowsingUI = {
var brandBundle = bundleService.createBundle("chrome://branding/locale/brand.properties"); var brandBundle = bundleService.createBundle("chrome://branding/locale/brand.properties");
var appName = brandBundle.GetStringFromName("brandShortName"); var appName = brandBundle.GetStringFromName("brandShortName");
# On Mac, use the header as the title.
#ifdef XP_MACOSX
var dialogTitle = pbBundle.GetStringFromName("privateBrowsingMessageHeader");
var header = "";
#else
var dialogTitle = pbBundle.GetStringFromName("privateBrowsingDialogTitle"); var dialogTitle = pbBundle.GetStringFromName("privateBrowsingDialogTitle");
var header = pbBundle.GetStringFromName("privateBrowsingMessageHeader") + "\n\n";
#endif
var message = pbBundle.formatStringFromName("privateBrowsingMessage", [appName], 1); var message = pbBundle.formatStringFromName("privateBrowsingMessage", [appName], 1);
var promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"]. var promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"].
@ -6889,7 +6896,7 @@ let gPrivateBrowsingUI = {
var neverAskText = pbBundle.GetStringFromName("privateBrowsingNeverAsk"); var neverAskText = pbBundle.GetStringFromName("privateBrowsingNeverAsk");
var result; var result;
var choice = promptService.confirmEx(null, dialogTitle, message, var choice = promptService.confirmEx(null, dialogTitle, header + message,
flags, button0Title, button1Title, null, flags, button0Title, button1Title, null,
neverAskText, neverAsk); neverAskText, neverAsk);

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

@ -169,6 +169,7 @@ safebrowsing.notAnAttackButton.accessKey=A
# LOCALIZATION NOTE (privateBrowsingYesTitle, privateBrowsingNoTitle, privateBrowsingNeverAsk): # LOCALIZATION NOTE (privateBrowsingYesTitle, privateBrowsingNoTitle, privateBrowsingNeverAsk):
# Access keys are specified by prefixing the desired letter with an ampersand. # Access keys are specified by prefixing the desired letter with an ampersand.
privateBrowsingDialogTitle=Start Private Browsing privateBrowsingDialogTitle=Start Private Browsing
privateBrowsingMessageHeader=Would you like to start Private Browsing?
privateBrowsingMessage=%S will save your current tabs for when you are done with your Private Browsing session. privateBrowsingMessage=%S will save your current tabs for when you are done with your Private Browsing session.
privateBrowsingYesTitle=&Start Private Browsing privateBrowsingYesTitle=&Start Private Browsing
privateBrowsingNoTitle=&Cancel privateBrowsingNoTitle=&Cancel