From f643d84844c5cc83d629a8407c90ec623d596a97 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Sun, 5 May 2024 10:15:15 +0200 Subject: [PATCH] Update translation --- LanguageBaseEnglish.xml | 6 ++++++ src/ui/Logic/LanguageDeserializer.cs | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/LanguageBaseEnglish.xml b/LanguageBaseEnglish.xml index b3ea9756a..b0a1c2a96 100644 --- a/LanguageBaseEnglish.xml +++ b/LanguageBaseEnglish.xml @@ -1088,6 +1088,12 @@ To use an API key, go to "Options -> Settings -> Auto-translate" to enter "{0}" requires an API key. Read more? Formality + Translate only current line + Re-translate current line + Split/merge handling + Delay between server calls + Maximum bytes in each server call + Prompt for {0} Google vs Microsoft translate diff --git a/src/ui/Logic/LanguageDeserializer.cs b/src/ui/Logic/LanguageDeserializer.cs index e17f5db07..ed8a72e40 100644 --- a/src/ui/Logic/LanguageDeserializer.cs +++ b/src/ui/Logic/LanguageDeserializer.cs @@ -2869,6 +2869,24 @@ namespace Nikse.SubtitleEdit.Logic case "GoogleTranslate/Formality": language.GoogleTranslate.Formality = reader.Value; break; + case "GoogleTranslate/TranslateCurrentLine": + language.GoogleTranslate.TranslateCurrentLine = reader.Value; + break; + case "GoogleTranslate/ReTranslateCurrentLine": + language.GoogleTranslate.ReTranslateCurrentLine = reader.Value; + break; + case "GoogleTranslate/MergeSplitStrategy": + language.GoogleTranslate.MergeSplitStrategy = reader.Value; + break; + case "GoogleTranslate/Delay": + language.GoogleTranslate.Delay = reader.Value; + break; + case "GoogleTranslate/MaxBytes": + language.GoogleTranslate.MaxBytes = reader.Value; + break; + case "GoogleTranslate/PromptX": + language.GoogleTranslate.PromptX = reader.Value; + break; case "GoogleOrMicrosoftTranslate/Title": language.GoogleOrMicrosoftTranslate.Title = reader.Value; break;