1
0
Fork 0
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:
Mitchell Livingston 2008-03-15 20:23:44 +00:00
parent e6e1539be5
commit 9829264413
2 changed files with 8 additions and 8 deletions

View file

@ -367,24 +367,24 @@
switch ([[message objectForKey: @"Level"] intValue]) switch ([[message objectForKey: @"Level"] intValue])
{ {
case TR_MSG_ERR: case TR_MSG_ERR:
level = @"[Error]"; level = NSLocalizedString(@"Error", "Message window -> level");
break; break;
case TR_MSG_INF: case TR_MSG_INF:
level = @"[Info]"; level = NSLocalizedString(@"Info", "Message window -> level");
break; break;
case TR_MSG_DBG: case TR_MSG_DBG:
level = @"[Debug]"; level = NSLocalizedString(@"Debug", "Message window -> level");
break; break;
default: default:
level = @""; level = @"";
} }
NSMutableArray * strings = [NSMutableArray arrayWithObjects: [message objectForKey: @"Date"], level, NSMutableArray * strings = [NSMutableArray arrayWithObjects: [message objectForKey: @"Date"],
[message objectForKey: @"Message"], nil]; [NSString stringWithFormat: @"[%@]", level], [message objectForKey: @"Message"], nil];
NSString * torrent; NSString * name;
if ((torrent = [message objectForKey: @"Name"])) if ((name = [message objectForKey: @"Name"]))
[strings insertObject: [torrent stringByAppendingString: @":"] atIndex: 2]; [strings insertObject: [name stringByAppendingString: @":"] atIndex: 2];
NSString * file; NSString * file;
if ((file = [self fileForMessage: message])) if ((file = [self fileForMessage: message]))