mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Minor language fix - thx domddol :)
This commit is contained in:
parent
86895306e0
commit
f9ca62b55f
@ -217,6 +217,7 @@ Read more info (web)?</WhisperNotFound>
|
||||
<SetCppConstMeFolder>Set CPP/Const-me models folder...</SetCppConstMeFolder>
|
||||
<OnlyRunPostProcessing>Run only post-processing/adjust timings</OnlyRunPostProcessing>
|
||||
<DownloadFasterWhisperCuda>Download cuBLAS and cuDNN libs for Faster-Whisper</DownloadFasterWhisperCuda>
|
||||
<NoTextFound>No text found!</NoTextFound>
|
||||
</AudioToText>
|
||||
<AssaAttachments>
|
||||
<Title>Advanced Sub Station Alpha attachments</Title>
|
||||
|
@ -7,7 +7,6 @@ using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Globalization;
|
||||
using System.Windows.Forms;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
|
||||
namespace Nikse.SubtitleEdit.Controls
|
||||
{
|
||||
|
@ -35370,7 +35370,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
if (form.TranscribedSubtitle.Paragraphs.Count == 0)
|
||||
{
|
||||
MessageBox.Show("No text found!");
|
||||
MessageBox.Show(LanguageSettings.Current.AudioToText.NoTextFound);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -35547,7 +35547,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
if (form.IncompleteModel)
|
||||
{
|
||||
MessageBox.Show($"No text found - model incomplete.{Environment.NewLine}" +
|
||||
MessageBox.Show($"Model incomplete.{Environment.NewLine}" +
|
||||
$"Please re-download model: {form.IncompleteModelName}", MessageBoxIcon.Error);
|
||||
}
|
||||
else if (form.UnknownArgument)
|
||||
@ -35580,8 +35580,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
extraMessage = Environment.NewLine + "Note you have a custom argument: " + customArgument;
|
||||
}
|
||||
extraMessage = extraMessage + Environment.NewLine + Environment.NewLine + "View the log file `whisper_log.txt`?";
|
||||
var r = MessageBox.Show($"No text found!" + extraMessage, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Error);
|
||||
extraMessage = extraMessage + Environment.NewLine + Environment.NewLine + string.Format(LanguageSettings.Current.General.ViewX, "`whisper_log.txt`?");
|
||||
var r = MessageBox.Show(LanguageSettings.Current.AudioToText.NoTextFound + extraMessage, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Error);
|
||||
if (r == DialogResult.Yes)
|
||||
{
|
||||
UiUtil.OpenFile(SeLogger.GetWhisperLogFilePath());
|
||||
|
@ -369,6 +369,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
SetCppConstMeFolder = "Set CPP/Const-me models folder...",
|
||||
OnlyRunPostProcessing = "Run only post-processing/adjust timings",
|
||||
DownloadFasterWhisperCuda = "Download cuBLAS and cuDNN libs for Faster-Whisper",
|
||||
NoTextFound = "No text found!",
|
||||
};
|
||||
|
||||
AssaAttachments = new LanguageStructure.AssaAttachments
|
||||
|
@ -592,6 +592,9 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
case "AudioToText/DownloadFasterWhisperCuda":
|
||||
language.AudioToText.DownloadFasterWhisperCuda = reader.Value;
|
||||
break;
|
||||
case "AudioToText/NoTextFound":
|
||||
language.AudioToText.NoTextFound = reader.Value;
|
||||
break;
|
||||
case "AssaAttachments/Title":
|
||||
language.AssaAttachments.Title = reader.Value;
|
||||
break;
|
||||
|
@ -219,6 +219,7 @@
|
||||
public string SetCppConstMeFolder { get; set; }
|
||||
public string OnlyRunPostProcessing { get; set; }
|
||||
public string DownloadFasterWhisperCuda { get; set; }
|
||||
public string NoTextFound { get; set; }
|
||||
}
|
||||
|
||||
public class AssaAttachments
|
||||
|
Loading…
Reference in New Issue
Block a user