MacGui: Make the queue window's wording match that of the main window.
authordynaflash <dynaflashtech@gmail.com>
Thu, 31 Mar 2011 13:41:01 +0000 (13:41 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Thu, 31 Mar 2011 13:41:01 +0000 (13:41 +0000)
- Patch by Rodeo.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3892 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBQueueController.mm

index 8e9b592668538bbc633e3591dbfe1b1562290bf5..738514622659caecf3e3f016e721f5580e4089bf 100644 (file)
@@ -169,13 +169,17 @@ static NSString*    HBQueuePauseResumeToolbarIdentifier       = @"HBQueuePauseRe
     
     /* Set the queue status field in the queue 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];
     }
     [fQueueCountField setStringValue:string];