1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 10:38:45 +00:00

string fix

This commit is contained in:
Mitchell Livingston 2006-11-16 22:15:50 +00:00
parent dc9f6fd994
commit fb6bf1e71c

View file

@ -660,15 +660,12 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
if (![[NSFileManager defaultManager] fileExistsAtPath: volume]) if (![[NSFileManager defaultManager] fileExistsAtPath: volume])
{ {
NSString * volumeName = [pathComponents objectAtIndex: 2];
NSAlert * alert = [[NSAlert alloc] init]; NSAlert * alert = [[NSAlert alloc] init];
[alert setMessageText: [NSString stringWithFormat: [alert setMessageText: [NSString stringWithFormat:
NSLocalizedString(@"The volume for moving the completed \"%@\" cannot be found.", NSLocalizedString(@"The volume for moving the completed \"%@\" cannot be found.",
"Move volume cannot be found alert -> title"), [self name]]]; "Move volume cannot be found alert -> title"), [self name]]];
[alert setInformativeText: [NSString stringWithFormat: [alert setInformativeText: @"The file will remain in its current location",
NSLocalizedString(@"The file will remain in its current location", "Move volume cannot be found alert -> message")];
"Move volume cannot be found alert -> message"), volumeName]];
[alert addButtonWithTitle: NSLocalizedString(@"OK", "Move volume cannot be found alert -> button")]; [alert addButtonWithTitle: NSLocalizedString(@"OK", "Move volume cannot be found alert -> button")];
[alert runModal]; [alert runModal];