diff options
author | Damiano Galassi <[email protected]> | 2018-06-09 10:06:52 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2018-06-09 10:06:52 +0200 |
commit | 041d228b23f622ee86a528f8c667e048503c226e (patch) | |
tree | 31e2a6e0422acd1765c68f78a2209d6014bb186f /macosx/HBStateFormatter+Private.m | |
parent | 047c78c7946aeba026a259c1a9cad8937975115b (diff) |
MacGui: improve NSLocalizedString comments.
Diffstat (limited to 'macosx/HBStateFormatter+Private.m')
-rw-r--r-- | macosx/HBStateFormatter+Private.m | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/macosx/HBStateFormatter+Private.m b/macosx/HBStateFormatter+Private.m index e4728661f..d02484a74 100644 --- a/macosx/HBStateFormatter+Private.m +++ b/macosx/HBStateFormatter+Private.m @@ -21,12 +21,12 @@ case HB_STATE_SEARCHING: { [string appendFormat: - NSLocalizedString(@"Searching for start point: %.2f %%", nil), + NSLocalizedString(@"Searching for start point: %.2f %%", @"HBStateFormatter -> search pass display name"), 100.0 * p.progress]; if (p.seconds > -1) { - [string appendFormat:NSLocalizedString(@" (ETA %02dh%02dm%02ds)", nil), p.hours, p.minutes, p.seconds]; + [string appendFormat:NSLocalizedString(@" (ETA %02dh%02dm%02ds)", @"HBStateFormatter -> search time format"), p.hours, p.minutes, p.seconds]; } break; @@ -34,7 +34,7 @@ case HB_STATE_WORKING: { - [string appendFormat:NSLocalizedString(@"Encoding %@ ", nil), self.title]; + [string appendFormat:NSLocalizedString(@"Encoding %@ ", @"HBStateFormatter -> work pass display name"), self.title]; if (self.twoLines) { @@ -46,15 +46,15 @@ if (p.pass_id == HB_PASS_SUBTITLE) { [string appendFormat: - NSLocalizedString(@"Pass %d %@ of %d, %.2f %%", nil), + NSLocalizedString(@"Pass %d %@ of %d, %.2f %%", @"HBStateFormatter -> work pass number format"), p.pass, - NSLocalizedString(@"(subtitle scan)", nil), + NSLocalizedString(@"(subtitle scan)", @"HBStateFormatter -> work pass type format"), p.pass_count, 100.0 * p.progress]; } else { [string appendFormat: - NSLocalizedString(@"Pass %d of %d, %.2f %%", nil), + NSLocalizedString(@"Pass %d of %d, %.2f %%", @"HBStateFormatter -> work pass number format"), p.pass, p.pass_count, 100.0 * p.progress]; } } @@ -64,13 +64,13 @@ if (p.rate_cur > 0.0) { [string appendFormat: - NSLocalizedString(@" (%.2f fps, avg %.2f fps, ETA %02dh%02dm%02ds)", nil), + NSLocalizedString(@" (%.2f fps, avg %.2f fps, ETA %02dh%02dm%02ds)", @"HBStateFormatter -> work time format"), p.rate_cur, p.rate_avg, p.hours, p.minutes, p.seconds]; } else { [string appendFormat: - NSLocalizedString(@" (ETA %02dh%02dm%02ds)", nil), + NSLocalizedString(@" (ETA %02dh%02dm%02ds)", @"HBStateFormatter -> work time format"), p.hours, p.minutes, p.seconds]; } } @@ -81,13 +81,13 @@ case HB_STATE_MUXING: { - [string appendString:NSLocalizedString(@"Muxing…", nil)]; + [string appendString:NSLocalizedString(@"Muxing…", @"HBStateFormatter -> pass display name")]; break; } case HB_STATE_PAUSED: { - [string appendString:NSLocalizedString(@"Paused", nil)]; + [string appendString:NSLocalizedString(@"Paused", @"HBStateFormatter -> pass display name")]; break; } @@ -97,14 +97,14 @@ if (p.preview_cur) { [string appendFormat: - NSLocalizedString(@"Scanning title %d of %d, preview %d…", nil), + NSLocalizedString(@"Scanning title %d of %d, preview %d…", @"HBStateFormatter -> scan pass format"), p.title_cur, p.title_count, p.preview_cur]; } else { [string appendFormat: - NSLocalizedString(@"Scanning title %d of %d…", nil), + NSLocalizedString(@"Scanning title %d of %d…", @"HBStateFormatter -> scan pass format"), p.title_cur, p.title_count]; } #undef p |