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:
Mitchell Livingston 2007-11-17 18:54:07 +00:00
parent 54a2bb978b
commit c4ac8eeb71
1 changed files with 8 additions and 4 deletions

View File

@ -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