summaryrefslogtreecommitdiffstats
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
parent97e1f39d8427f3d18a29dd3214283f1828972a34 (diff)
MacGui: improve localized string formats.
-rw-r--r--macosx/HBJob+UIAdditions.m8
-rw-r--r--macosx/HBTitle.m3
2 files changed, 6 insertions, 5 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]];
}
}
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m
index 7a34612eb..d060ef427 100644
--- a/macosx/HBTitle.m
+++ b/macosx/HBTitle.m
@@ -150,7 +150,8 @@ extern NSString *keySubTrackType;
[format appendString:@", "];
- [format appendFormat:HBKitLocalizedString(@"%.6g FPS", @"Title short description -> video format"), _hb_title->vrate.num / (double)_hb_title->vrate.den];
+ NSString *fps = [NSString localizedStringWithFormat:HBKitLocalizedString(@"%.6g FPS", @"Title short description -> video format"), _hb_title->vrate.num / (double)_hb_title->vrate.den];
+ [format appendString:fps];
hb_list_t *audioList = _hb_title->list_audio;
int audioCount = hb_list_count(audioList);