summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob+UIAdditions.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-04-01 11:48:05 +0200
committerDamiano Galassi <[email protected]>2019-04-01 11:48:05 +0200
commitbb54b66f5a02e2a2750bb203d2351d94d27194e1 (patch)
tree9bb246b9d02f1c6d10c5d39799c4ce164e33e5d0 /macosx/HBJob+UIAdditions.m
parent97e1f39d8427f3d18a29dd3214283f1828972a34 (diff)
MacGui: improve localized string formats.
Diffstat (limited to 'macosx/HBJob+UIAdditions.m')
-rw-r--r--macosx/HBJob+UIAdditions.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBJob+UIAdditions.m b/macosx/HBJob+UIAdditions.m
index cd3c8e068..75c7729fe 100644
--- a/macosx/HBJob+UIAdditions.m
+++ b/macosx/HBJob+UIAdditions.m
@@ -373,7 +373,7 @@ static NSDictionary *shortHeightAttr;
{
[attrString appendString:@"\t" withAttributes:detailAttr];
[attrString appendString:HBKitLocalizedString(@"Filters:", @"Filters description") withAttributes:detailBoldAttr];
- [attrString appendString:@" \t" withAttributes:detailAttr];
+ [attrString appendString:@" \t" withAttributes:detailAttr];
[attrString appendString:summary withAttributes:detailAttr];
[attrString appendString:@"\n" withAttributes:detailAttr];
}
@@ -425,7 +425,7 @@ static NSDictionary *shortHeightAttr;
else // CRF
{
[videoInfo appendFormat:@", "];
- [videoInfo appendFormat:HBKitLocalizedString(@"Constant Quality: %.2f %s", @"Video description"), self.video.quality, hb_video_quality_get_name(self.video.encoder)];
+ [videoInfo appendString:[NSString localizedStringWithFormat:HBKitLocalizedString(@"Constant Quality: %.2f %s", @"Video description"), self.video.quality, hb_video_quality_get_name(self.video.encoder)]];
}
[attrString appendString:@"\t" withAttributes:detailAttr];
@@ -528,13 +528,13 @@ static NSDictionary *shortHeightAttr;
if (0.0 < audioTrack.drc)
{
[detailString appendString:@", "];
- [detailString appendFormat:HBKitLocalizedString(@"DRC: %.2f", @"Audio description"), audioTrack.drc];
+ [detailString appendString:[NSString localizedStringWithFormat:HBKitLocalizedString(@"DRC: %.2f", @"Audio description"), audioTrack.drc]];
}
if (0.0 != audioTrack.gain)
{
[detailString appendString:@", "];
- [detailString appendFormat:HBKitLocalizedString(@"Gain: %.2f", @"Audio description"), audioTrack.gain];
+ [detailString appendString:[NSString localizedStringWithFormat:HBKitLocalizedString(@"Gain: %.2f", @"Audio description"), audioTrack.gain]];
}
}