From: dynaflash Date: Tue, 30 Nov 2010 18:37:16 +0000 (+0000) Subject: MacGui: fix a typo and change how we word how many encodes are left in the queue... X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=ac961f86514f2c76a12d762fd037a9b2763b8a84;p=handbrake-jp%2Fhandbrake-jp-git.git MacGui: fix a typo and change how we word how many encodes are left in the queue in the main window. - Patches by Rodeo. - Further explanation can be found here: http://forum.handbrake.fr/viewtopic.php?f=4&t=18807 git-svn-id: svn://localhost/HandBrake/trunk@3691 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/macosx/Controller.m b/macosx/Controller.m index c9cd4baf..720e9e2a 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2091,13 +2091,17 @@ fWorkingCount = 0; /* Set the queue status field in the main window */ NSMutableString * string; - if (fPendingCount == 1) + if (fPendingCount == 0) + { + string = [NSMutableString stringWithFormat: NSLocalizedString( @"No encode pending", @"" )]; + } + else if (fPendingCount == 1) { string = [NSMutableString stringWithFormat: NSLocalizedString( @"%d encode pending", @"" ), fPendingCount]; } else { - string = [NSMutableString stringWithFormat: NSLocalizedString( @"%d encode(s) pending", @"" ), fPendingCount]; + string = [NSMutableString stringWithFormat: NSLocalizedString( @"%d encodes pending", @"" ), fPendingCount]; } [fQueueStatus setStringValue:string]; } @@ -2118,7 +2122,7 @@ fWorkingCount = 0; { nextPendingFound = YES; nextPendingIndex = [QueueFileArray indexOfObject: tempObject]; - [self writeToActivityLog: "getNextPendingQueueIndex next pending encod index is:%d", nextPendingIndex]; + [self writeToActivityLog: "getNextPendingQueueIndex next pending encode index is:%d", nextPendingIndex]; } i++; }