зеркало из https://github.com/mozilla/pjs.git
Making the popup window prompt localizable.
This commit is contained in:
Родитель
610254c778
Коммит
9ea45e8064
|
@ -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
Двоичные данные
camino/English.lproj/Localizable.strings
Двоичный файл не отображается.
Двоичные данные
camino/resources/localized/English.lproj/Localizable.strings
Двоичные данные
camino/resources/localized/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
Двоичные данные
chimera/English.lproj/Localizable.strings
Двоичный файл не отображается.
Двоичные данные
chimera/resources/localized/English.lproj/Localizable.strings
Двоичные данные
chimera/resources/localized/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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче