Making the popup window prompt localizable.

This commit is contained in:
bryner%netscape.com 2002-06-29 04:40:13 +00:00
parent 7ddc21a919
commit fba1bbf4f2
8 changed files with 4 additions and 20 deletions

View File

@ -474,10 +474,6 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
[[self window] setFrame:frame display:YES];
}
#define NS_POPUP_BLOCK @"This Web site is attempting to open an unrequested popup window. Navigator can \
automatically prevent Web sites from opening popup advertisements. Click OK to prevent all \
unrequested popups (including this one) from opening."
- (CHBrowserView*)createBrowserWindow:(unsigned int)aMask
{
nsCOMPtr<nsIPrefBranch> pref(do_GetService("@mozilla.org/preferences-service;1"));
@ -497,7 +493,7 @@ unrequested popups (including this one) from opening."
// popup.
nsAlertController* controller = nsCocoaBrowserService::GetAlertController();
BOOL confirm = [controller confirm: [self window] title: @"Unrequested Popup Detected"
text: NS_POPUP_BLOCK];
text: [NSString stringWithFormat: NSLocalizedString(@"PopupBlockMsg", @""), NSLocalizedString(@"Navigator", @"")]];
// This is a one-time dialog.
pref->SetBoolPref("browser.popups.showPopupBlocker", PR_FALSE);

View File

@ -474,10 +474,6 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
[[self window] setFrame:frame display:YES];
}
#define NS_POPUP_BLOCK @"This Web site is attempting to open an unrequested popup window. Navigator can \
automatically prevent Web sites from opening popup advertisements. Click OK to prevent all \
unrequested popups (including this one) from opening."
- (CHBrowserView*)createBrowserWindow:(unsigned int)aMask
{
nsCOMPtr<nsIPrefBranch> pref(do_GetService("@mozilla.org/preferences-service;1"));
@ -497,7 +493,7 @@ unrequested popups (including this one) from opening."
// popup.
nsAlertController* controller = nsCocoaBrowserService::GetAlertController();
BOOL confirm = [controller confirm: [self window] title: @"Unrequested Popup Detected"
text: NS_POPUP_BLOCK];
text: [NSString stringWithFormat: NSLocalizedString(@"PopupBlockMsg", @""), NSLocalizedString(@"Navigator", @"")]];
// This is a one-time dialog.
pref->SetBoolPref("browser.popups.showPopupBlocker", PR_FALSE);

View File

@ -474,10 +474,6 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
[[self window] setFrame:frame display:YES];
}
#define NS_POPUP_BLOCK @"This Web site is attempting to open an unrequested popup window. Navigator can \
automatically prevent Web sites from opening popup advertisements. Click OK to prevent all \
unrequested popups (including this one) from opening."
- (CHBrowserView*)createBrowserWindow:(unsigned int)aMask
{
nsCOMPtr<nsIPrefBranch> pref(do_GetService("@mozilla.org/preferences-service;1"));
@ -497,7 +493,7 @@ unrequested popups (including this one) from opening."
// popup.
nsAlertController* controller = nsCocoaBrowserService::GetAlertController();
BOOL confirm = [controller confirm: [self window] title: @"Unrequested Popup Detected"
text: NS_POPUP_BLOCK];
text: [NSString stringWithFormat: NSLocalizedString(@"PopupBlockMsg", @""), NSLocalizedString(@"Navigator", @"")]];
// This is a one-time dialog.
pref->SetBoolPref("browser.popups.showPopupBlocker", PR_FALSE);

View File

@ -474,10 +474,6 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
[[self window] setFrame:frame display:YES];
}
#define NS_POPUP_BLOCK @"This Web site is attempting to open an unrequested popup window. Navigator can \
automatically prevent Web sites from opening popup advertisements. Click OK to prevent all \
unrequested popups (including this one) from opening."
- (CHBrowserView*)createBrowserWindow:(unsigned int)aMask
{
nsCOMPtr<nsIPrefBranch> pref(do_GetService("@mozilla.org/preferences-service;1"));
@ -497,7 +493,7 @@ unrequested popups (including this one) from opening."
// popup.
nsAlertController* controller = nsCocoaBrowserService::GetAlertController();
BOOL confirm = [controller confirm: [self window] title: @"Unrequested Popup Detected"
text: NS_POPUP_BLOCK];
text: [NSString stringWithFormat: NSLocalizedString(@"PopupBlockMsg", @""), NSLocalizedString(@"Navigator", @"")]];
// This is a one-time dialog.
pref->SetBoolPref("browser.popups.showPopupBlocker", PR_FALSE);