mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
when creating a torrent, changing the torrent file location will give an explanation in the save panel; localized the Select button in the save panel; set the location as the torrent file's currently set location
This commit is contained in:
parent
54a2bb978b
commit
c4ac8eeb71
1 changed files with 8 additions and 4 deletions
|
@ -174,12 +174,16 @@
|
|||
{
|
||||
NSSavePanel * panel = [NSSavePanel savePanel];
|
||||
|
||||
[panel setPrompt: @"Select"];
|
||||
[panel setPrompt: NSLocalizedString(@"Select", "Create torrent -> location sheet -> button")];
|
||||
[panel setMessage: NSLocalizedString(@"Select the name and location for the torrent file.",
|
||||
"Create torrent -> location sheet -> message")];
|
||||
|
||||
[panel setRequiredFileType: @"torrent"];
|
||||
[panel setCanSelectHiddenExtension: YES];
|
||||
|
||||
[panel beginSheetForDirectory: nil file: [fLocation lastPathComponent] modalForWindow: [self window] modalDelegate: self
|
||||
didEndSelector: @selector(locationSheetClosed:returnCode:contextInfo:) contextInfo: nil];
|
||||
|
||||
[panel beginSheetForDirectory: [fLocation stringByDeletingLastPathComponent] file: [fLocation lastPathComponent]
|
||||
modalForWindow: [self window] modalDelegate: self didEndSelector: @selector(locationSheetClosed:returnCode:contextInfo:)
|
||||
contextInfo: nil];
|
||||
}
|
||||
|
||||
- (void) create: (id) sender
|
||||
|
|
Loading…
Add table
Reference in a new issue