mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
string fix
This commit is contained in:
parent
dc9f6fd994
commit
fb6bf1e71c
1 changed files with 2 additions and 5 deletions
|
@ -660,15 +660,12 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
|
||||
if (![[NSFileManager defaultManager] fileExistsAtPath: volume])
|
||||
{
|
||||
NSString * volumeName = [pathComponents objectAtIndex: 2];
|
||||
|
||||
NSAlert * alert = [[NSAlert alloc] init];
|
||||
[alert setMessageText: [NSString stringWithFormat:
|
||||
NSLocalizedString(@"The volume for moving the completed \"%@\" cannot be found.",
|
||||
"Move volume cannot be found alert -> title"), [self name]]];
|
||||
[alert setInformativeText: [NSString stringWithFormat:
|
||||
NSLocalizedString(@"The file will remain in its current location",
|
||||
"Move volume cannot be found alert -> message"), volumeName]];
|
||||
[alert setInformativeText: @"The file will remain in its current location",
|
||||
"Move volume cannot be found alert -> message")];
|
||||
[alert addButtonWithTitle: NSLocalizedString(@"OK", "Move volume cannot be found alert -> button")];
|
||||
|
||||
[alert runModal];
|
||||
|
|
Loading…
Reference in a new issue