summaryrefslogtreecommitdiff
path: root/cocoa/BrowserWindowController.m
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-02-25 16:20:10 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-02-25 16:20:10 +0000
commit2bb6987d39ad1bb199b3e990cc7260a1b3e80160 (patch)
treefa20e3f2467ac71b7639afaef7fb2b7eb2d657b4 /cocoa/BrowserWindowController.m
parentba20058f2c42c471d0882e78cc6191bd8e11cd11 (diff)
downloadnetsurf-2bb6987d39ad1bb199b3e990cc7260a1b3e80160.tar.gz
netsurf-2bb6987d39ad1bb199b3e990cc7260a1b3e80160.tar.bz2
Prepared for localizing string literals in source code.
svn path=/trunk/netsurf/; revision=11795
Diffstat (limited to 'cocoa/BrowserWindowController.m')
-rw-r--r--cocoa/BrowserWindowController.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/cocoa/BrowserWindowController.m b/cocoa/BrowserWindowController.m
index 2701fecec..a0c59594a 100644
--- a/cocoa/BrowserWindowController.m
+++ b/cocoa/BrowserWindowController.m
@@ -115,8 +115,12 @@
if ([tabView numberOfTabViewItems] <= 1) return YES;
if ([[NSUserDefaults standardUserDefaults] boolForKey: kAlwaysCloseMultipleTabs]) return YES;
- NSAlert *ask = [NSAlert alertWithMessageText: @"Do you really want to close this window?" defaultButton:@"Yes" alternateButton:@"No" otherButton:nil
- informativeTextWithFormat: @"There are %d tabs open, do you want to close them all?", [tabView numberOfTabViewItems]];
+ NSAlert *ask = [NSAlert alertWithMessageText: NSLocalizedString( @"Do you really want to close this window?", nil )
+ defaultButton: NSLocalizedString( @"Yes", @"'Yes' button" )
+ alternateButton: NSLocalizedString( @"No" , @"'No' button" )
+ otherButton:nil
+ informativeTextWithFormat: NSLocalizedString( @"There are %d tabs open, do you want to close them all?", nil ),
+ [tabView numberOfTabViewItems]];
[ask setShowsSuppressionButton:YES];
[ask beginSheetModalForWindow: window modalDelegate:self didEndSelector:@selector(canCloseAlertDidEnd:returnCode:contextInfo:)