mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
miss a localized button in About window
This commit is contained in:
Generated
+1
@@ -7,6 +7,7 @@
|
||||
OUTLETS = {
|
||||
fCopyrightField = NSTextField;
|
||||
fLicenseButton = NSButton;
|
||||
fLicenseCloseButton = NSButton;
|
||||
fLicenseSheet = NSPanel;
|
||||
fLicenseView = NSTextView;
|
||||
fTextView = NSTextView;
|
||||
|
||||
Generated
+1
@@ -8,6 +8,7 @@
|
||||
<string>446.1</string>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>14</integer>
|
||||
<integer>5</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
|
||||
Generated
BIN
Binary file not shown.
@@ -28,7 +28,7 @@
|
||||
{
|
||||
IBOutlet NSTextView * fTextView, * fLicenseView;
|
||||
IBOutlet NSTextField * fVersionField, * fCopyrightField;
|
||||
IBOutlet NSButton * fLicenseButton;
|
||||
IBOutlet NSButton * fLicenseButton, * fLicenseCloseButton;
|
||||
IBOutlet NSPanel * fLicenseSheet;
|
||||
}
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user