Add "Engine" translation

This commit is contained in:
niksedk 2023-04-13 19:55:13 +02:00
parent f0db9eaa21
commit 4d6fa0bcbf
5 changed files with 7 additions and 1 deletions

View File

@ -179,6 +179,7 @@ Note: Do check free disk space.</WaveFileMalformed>
<Title>Audio to text</Title>
<Info>Generate text from audio via Vosk/Kaldi speech recognition</Info>
<WhisperInfo>Generate text from audio via Whisper speech recognition</WhisperInfo>
<Engine>Engine</Engine>
<VoskWebsite>Vosk website</VoskWebsite>
<WhisperWebsite>Whisper website</WhisperWebsite>
<WhisperNotFound>Whisper not found.

View File

@ -99,7 +99,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
labelTime.Text = string.Empty;
listViewInputFiles.Visible = false;
labelElapsed.Text = string.Empty;
labelEngine.Text = LanguageSettings.Current.AudioToText.Engine;
labelEngine.Left = comboBoxWhisperEngine.Left - labelEngine.Width - 5;
comboBoxCharsPerSub.BeginUpdate();

View File

@ -328,6 +328,7 @@ namespace Nikse.SubtitleEdit.Logic
Title = "Audio to text",
Info = "Generate text from audio via Vosk/Kaldi speech recognition",
WhisperInfo = "Generate text from audio via Whisper speech recognition",
Engine = "Engine",
VoskWebsite = "Vosk website",
WhisperWebsite = "Whisper website",
WhisperNotFound = "Whisper not found.\r\n\r\nRead more info (web)?",

View File

@ -484,6 +484,9 @@ namespace Nikse.SubtitleEdit.Logic
case "AudioToText/WhisperInfo":
language.AudioToText.WhisperInfo = reader.Value;
break;
case "AudioToText/Engine":
language.AudioToText.Engine = reader.Value;
break;
case "AudioToText/VoskWebsite":
language.AudioToText.VoskWebsite = reader.Value;
break;

View File

@ -185,6 +185,7 @@ namespace Nikse.SubtitleEdit.Logic
public string Title { get; set; }
public string Info { get; set; }
public string WhisperInfo { get; set; }
public string Engine { get; set; }
public string VoskWebsite { get; set; }
public string WhisperWebsite { get; set; }
public string WhisperNotFound { get; set; }