mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Improve time remaining a little
This commit is contained in:
parent
ec45485c53
commit
840c2f010f
@ -860,6 +860,7 @@ Read more info (web)?</WhisperNotFound>
|
||||
<XGeneratedWithBurnedInSubsInX>"{0}" generated with burned-in subtitle in {1}.</XGeneratedWithBurnedInSubsInX>
|
||||
<TimeRemainingMinutes>Time remaining: {0} minutes</TimeRemainingMinutes>
|
||||
<TimeRemainingSeconds>Time remaining: {0} seconds</TimeRemainingSeconds>
|
||||
<TimeRemainingAFewSeconds>Time remaining: A few seconds</TimeRemainingAFewSeconds>
|
||||
<TimeRemainingMinutesAndSeconds>Time remaining: {0} minutes and {1} seconds</TimeRemainingMinutesAndSeconds>
|
||||
<TargetFileName>Target file name: {0}</TargetFileName>
|
||||
<TargetFileSize>Target file size (requires 2 pass encoding)</TargetFileSize>
|
||||
|
@ -1087,6 +1087,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
XGeneratedWithBurnedInSubsInX = "\"{0}\" generated with burned-in subtitle in {1}.",
|
||||
TimeRemainingMinutes = "Time remaining: {0} minutes",
|
||||
TimeRemainingSeconds = "Time remaining: {0} seconds",
|
||||
TimeRemainingAFewSeconds = "Time remaining: A few seconds",
|
||||
TimeRemainingMinutesAndSeconds = "Time remaining: {0} minutes and {1} seconds",
|
||||
TargetFileName = "Target file name: {0}",
|
||||
TargetFileSize = "Target file size (requires 2 pass encoding)",
|
||||
|
@ -2275,6 +2275,9 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
case "GenerateVideoWithBurnedInSubs/TimeRemainingSeconds":
|
||||
language.GenerateVideoWithBurnedInSubs.TimeRemainingSeconds = reader.Value;
|
||||
break;
|
||||
case "GenerateVideoWithBurnedInSubs/TimeRemainingAFewSeconds":
|
||||
language.GenerateVideoWithBurnedInSubs.TimeRemainingAFewSeconds = reader.Value;
|
||||
break;
|
||||
case "GenerateVideoWithBurnedInSubs/TimeRemainingMinutesAndSeconds":
|
||||
language.GenerateVideoWithBurnedInSubs.TimeRemainingMinutesAndSeconds = reader.Value;
|
||||
break;
|
||||
|
@ -947,6 +947,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
public string XGeneratedWithBurnedInSubsInX { get; set; }
|
||||
public string TimeRemainingMinutes { get; set; }
|
||||
public string TimeRemainingSeconds { get; set; }
|
||||
public string TimeRemainingAFewSeconds { get; set; }
|
||||
public string TimeRemainingMinutesAndSeconds { get; set; }
|
||||
public string TargetFileName { get; set; }
|
||||
public string TargetFileSize { get; set; }
|
||||
|
@ -10,6 +10,11 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
var timeCode = new TimeCode(estimatedTotalMs);
|
||||
if (timeCode.TotalSeconds < 60)
|
||||
{
|
||||
if (timeCode.TotalSeconds < 3)
|
||||
{
|
||||
return string.Format(LanguageSettings.Current.GenerateVideoWithBurnedInSubs.TimeRemainingAFewSeconds);
|
||||
}
|
||||
|
||||
return string.Format(LanguageSettings.Current.GenerateVideoWithBurnedInSubs.TimeRemainingSeconds, (int)Math.Round(timeCode.TotalSeconds));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user