More language settings - thx Jamakmake :)

This commit is contained in:
niksedk 2023-04-17 18:45:04 +02:00
parent e3c32ab864
commit 0f5aa0a996
5 changed files with 14 additions and 0 deletions

View File

@ -200,6 +200,8 @@ Read more info (web)?</WhisperNotFound>
<KeepPartialTranscription>Keep partial transcription</KeepPartialTranscription>
<TranslateToEnglish>Translate to English</TranslateToEnglish>
<MaxCharsPerSubtitle>Max. chars per subtitle line</MaxCharsPerSubtitle>
<RemoveTemporaryFiles>Remove temporary files</RemoveTemporaryFiles>
<SetCppConstMeFolder>Set CPP/Const-me models folder...</SetCppConstMeFolder>
</AudioToText>
<AssaAttachments>
<Title>Advanced Sub Station Alpha attachments</Title>

View File

@ -75,6 +75,8 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
buttonAddFile.Text = LanguageSettings.Current.DvdSubRip.Add;
buttonRemoveFile.Text = LanguageSettings.Current.DvdSubRip.Remove;
buttonClear.Text = LanguageSettings.Current.DvdSubRip.Clear;
setCPPConstmeModelsFolderToolStripMenuItem.Text = LanguageSettings.Current.AudioToText.ChooseLanguage;
removeTemporaryFilesToolStripMenuItem.Text = LanguageSettings.Current.AudioToText.RemoveTemporaryFiles;
columnHeaderFileName.Text = LanguageSettings.Current.JoinSubtitles.FileName;

View File

@ -347,6 +347,8 @@ namespace Nikse.SubtitleEdit.Logic
KeepPartialTranscription = "Keep partial transcription",
TranslateToEnglish = "Translate to English",
MaxCharsPerSubtitle = "Max. chars per subtitle line",
RemoveTemporaryFiles = "Remove temporary files",
SetCppConstMeFolder = "Set CPP/Const-me models folder...",
};
AssaAttachments = new LanguageStructure.AssaAttachments

View File

@ -541,6 +541,12 @@ namespace Nikse.SubtitleEdit.Logic
case "AudioToText/MaxCharsPerSubtitle":
language.AudioToText.MaxCharsPerSubtitle = reader.Value;
break;
case "AudioToText/RemoveTemporaryFiles":
language.AudioToText.RemoveTemporaryFiles = reader.Value;
break;
case "AudioToText/SetCppConstMeFolder":
language.AudioToText.SetCppConstMeFolder = reader.Value;
break;
case "AssaAttachments/Title":
language.AssaAttachments.Title = reader.Value;
break;

View File

@ -204,6 +204,8 @@ namespace Nikse.SubtitleEdit.Logic
public string KeepPartialTranscription { get; set; }
public string TranslateToEnglish { get; set; }
public string MaxCharsPerSubtitle { get; set; }
public string RemoveTemporaryFiles { get; set; }
public string SetCppConstMeFolder { get; set; }
}
public class AssaAttachments