miss a localized button in About window

This commit is contained in:
Mitchell Livingston
2007-09-24 12:44:35 +00:00
parent 1dda5836cf
commit 2d9875f07a
5 changed files with 5 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@
OUTLETS = {
fCopyrightField = NSTextField;
fLicenseButton = NSButton;
fLicenseCloseButton = NSButton;
fLicenseSheet = NSPanel;
fLicenseView = NSTextView;
fTextView = NSTextView;
+1
View File
@@ -8,6 +8,7 @@
<string>446.1</string>
<key>IBOpenObjects</key>
<array>
<integer>14</integer>
<integer>5</integer>
</array>
<key>IBSystem Version</key>
Binary file not shown.
+1 -1
View File
@@ -28,7 +28,7 @@
{
IBOutlet NSTextView * fTextView, * fLicenseView;
IBOutlet NSTextField * fVersionField, * fCopyrightField;
IBOutlet NSButton * fLicenseButton;
IBOutlet NSButton * fLicenseButton, * fLicenseCloseButton;
IBOutlet NSPanel * fLicenseSheet;
}
+2
View File
@@ -69,9 +69,11 @@ AboutWindowController * fAboutBoxInstance = nil;
fAboutBoxInstance = nil;
}
#warning localize OK button
- (IBAction) showLicense: (id) sender
{
[fLicenseView setString: [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"LICENSE" ofType: nil]]];
[fLicenseCloseButton setTitle: NSLocalizedString(@"OK", "About window -> license close button")];
[NSApp beginSheet: fLicenseSheet modalForWindow: [self window] modalDelegate: nil didEndSelector: nil contextInfo: nil];
}