Making the popup window prompt localizable.

This commit is contained in:
bryner%netscape.com 2002-06-29 04:40:13 +00:00
Родитель 610254c778
Коммит 9ea45e8064
8 изменённых файлов: 4 добавлений и 20 удалений

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

@ -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);

Двоичные данные
camino/English.lproj/Localizable.strings

Двоичный файл не отображается.

Двоичный файл не отображается.

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

@ -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);

Двоичные данные
chimera/English.lproj/Localizable.strings

Двоичный файл не отображается.

Двоичный файл не отображается.

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

@ -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);