diff --git a/macosx/English.lproj/Localizable.strings b/macosx/English.lproj/Localizable.strings index 66f5daed3..68ac3d0d3 100644 Binary files a/macosx/English.lproj/Localizable.strings and b/macosx/English.lproj/Localizable.strings differ diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index 0ea21dc3d..252f6be21 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -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]))