mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
localize "level" string in message window; update strings file
This commit is contained in:
parent
e6e1539be5
commit
9829264413
2 changed files with 8 additions and 8 deletions
Binary file not shown.
|
@ -367,24 +367,24 @@
|
|||
switch ([[message objectForKey: @"Level"] intValue])
|
||||
{
|
||||
case TR_MSG_ERR:
|
||||
level = @"[Error]";
|
||||
level = NSLocalizedString(@"Error", "Message window -> level");
|
||||
break;
|
||||
case TR_MSG_INF:
|
||||
level = @"[Info]";
|
||||
level = NSLocalizedString(@"Info", "Message window -> level");
|
||||
break;
|
||||
case TR_MSG_DBG:
|
||||
level = @"[Debug]";
|
||||
level = NSLocalizedString(@"Debug", "Message window -> level");
|
||||
break;
|
||||
default:
|
||||
level = @"";
|
||||
}
|
||||
|
||||
NSMutableArray * strings = [NSMutableArray arrayWithObjects: [message objectForKey: @"Date"], level,
|
||||
[message objectForKey: @"Message"], nil];
|
||||
NSMutableArray * strings = [NSMutableArray arrayWithObjects: [message objectForKey: @"Date"],
|
||||
[NSString stringWithFormat: @"[%@]", level], [message objectForKey: @"Message"], nil];
|
||||
|
||||
NSString * torrent;
|
||||
if ((torrent = [message objectForKey: @"Name"]))
|
||||
[strings insertObject: [torrent stringByAppendingString: @":"] atIndex: 2];
|
||||
NSString * name;
|
||||
if ((name = [message objectForKey: @"Name"]))
|
||||
[strings insertObject: [name stringByAppendingString: @":"] atIndex: 2];
|
||||
|
||||
NSString * file;
|
||||
if ((file = [self fileForMessage: message]))
|
||||
|
|
Loading…
Reference in a new issue