OSDN Git Service

MacGui: fix a typo and change how we word how many encodes are left in the queue...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 30 Nov 2010 18:37:16 +0000 (18:37 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 30 Nov 2010 18:37:16 +0000 (18:37 +0000)
- 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

macosx/Controller.m

index c9cd4ba..720e9e2 100644 (file)
@@ -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++;
        }