diff options
author | ritsuka <[email protected]> | 2015-03-08 06:04:14 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-03-08 06:04:14 +0000 |
commit | 44eb2602873819fcb35cc92ea53a8f14e5bc7c64 (patch) | |
tree | 753891be4bd168712eff25832938fc04e4215d22 /macosx/HBQueueController.m | |
parent | 24f6d27cf9d979ab0743665b37e60fd1295776d1 (diff) |
MacGui: simplify the encoding state string creation code
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6978 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.m')
-rw-r--r-- | macosx/HBQueueController.m | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m index 89e40e02f..a4cf287a7 100644 --- a/macosx/HBQueueController.m +++ b/macosx/HBQueueController.m @@ -595,26 +595,19 @@ } case HBStateWorking: { - NSString *pass_desc = @""; - if (p.pass_id == HB_PASS_SUBTITLE && p.pass_count > 1) - { - if ([self.currentJob.subtitles.tracks.firstObject[keySubTrackIndex] intValue] == -1) - { - pass_desc = NSLocalizedString(@"(subtitle scan)", @""); - } - } - - if (pass_desc.length) + if (p.pass_id == HB_PASS_SUBTITLE) { string = [NSMutableString stringWithFormat: - NSLocalizedString(@"Encoding: %@ \nPass %d %@ of %d, %.2f %%", @""), + NSLocalizedString(@"Encoding: %@ \nPass %d %@ of %d, %.2f %%", nil), self.currentJob.destURL.lastPathComponent, - p.pass, pass_desc, p.pass_count, 100.0 * p.progress]; + p.pass, + NSLocalizedString(@"(subtitle scan)", nil), + p.pass_count, 100.0 * p.progress]; } else { string = [NSMutableString stringWithFormat: - NSLocalizedString(@"Encoding: %@ \nPass %d of %d, %.2f %%", @""), + NSLocalizedString(@"Encoding: %@ \nPass %d of %d, %.2f %%", nil), self.currentJob.destURL.lastPathComponent, p.pass, p.pass_count, 100.0 * p.progress]; } |