mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Making the popup window prompt localizable.
This commit is contained in:
parent
7ddc21a919
commit
fba1bbf4f2
@ -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);
|
||||
|
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
|
@ -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);
|
||||
|
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user