From 0f5aa0a9965de6ec238694045349b0bdc09a1575 Mon Sep 17 00:00:00 2001 From: niksedk Date: Mon, 17 Apr 2023 18:45:04 +0200 Subject: [PATCH] More language settings - thx Jamakmake :) --- LanguageBaseEnglish.xml | 2 ++ src/ui/Forms/AudioToText/WhisperAudioToText.cs | 2 ++ src/ui/Logic/Language.cs | 2 ++ src/ui/Logic/LanguageDeserializer.cs | 6 ++++++ src/ui/Logic/LanguageStructure.cs | 2 ++ 5 files changed, 14 insertions(+) diff --git a/LanguageBaseEnglish.xml b/LanguageBaseEnglish.xml index aae966d31..b85bd2ca7 100644 --- a/LanguageBaseEnglish.xml +++ b/LanguageBaseEnglish.xml @@ -200,6 +200,8 @@ Read more info (web)? Keep partial transcription Translate to English Max. chars per subtitle line + Remove temporary files + Set CPP/Const-me models folder... Advanced Sub Station Alpha attachments diff --git a/src/ui/Forms/AudioToText/WhisperAudioToText.cs b/src/ui/Forms/AudioToText/WhisperAudioToText.cs index eab3500e5..df90057e6 100644 --- a/src/ui/Forms/AudioToText/WhisperAudioToText.cs +++ b/src/ui/Forms/AudioToText/WhisperAudioToText.cs @@ -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; diff --git a/src/ui/Logic/Language.cs b/src/ui/Logic/Language.cs index 3f82f42c1..64d4dc929 100644 --- a/src/ui/Logic/Language.cs +++ b/src/ui/Logic/Language.cs @@ -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 diff --git a/src/ui/Logic/LanguageDeserializer.cs b/src/ui/Logic/LanguageDeserializer.cs index 2b1316567..0e7063b55 100644 --- a/src/ui/Logic/LanguageDeserializer.cs +++ b/src/ui/Logic/LanguageDeserializer.cs @@ -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; diff --git a/src/ui/Logic/LanguageStructure.cs b/src/ui/Logic/LanguageStructure.cs index 3313ab88c..1508e347e 100644 --- a/src/ui/Logic/LanguageStructure.cs +++ b/src/ui/Logic/LanguageStructure.cs @@ -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