Update translation

This commit is contained in:
Nikolaj Olsson 2024-05-05 10:15:15 +02:00
parent b397259aa9
commit f643d84844
2 changed files with 24 additions and 0 deletions

View File

@ -1088,6 +1088,12 @@ To use an API key, go to "Options -> Settings -> Auto-translate" to enter
<XRequiresAnApiKey>"{0}" requires an API key.</XRequiresAnApiKey>
<ReadMore>Read more?</ReadMore>
<Formality>Formality</Formality>
<TranslateCurrentLine>Translate only current line</TranslateCurrentLine>
<ReTranslateCurrentLine>Re-translate current line</ReTranslateCurrentLine>
<MergeSplitStrategy>Split/merge handling</MergeSplitStrategy>
<Delay>Delay between server calls</Delay>
<MaxBytes>Maximum bytes in each server call</MaxBytes>
<PromptX>Prompt for {0}</PromptX>
</GoogleTranslate>
<GoogleOrMicrosoftTranslate>
<Title>Google vs Microsoft translate</Title>

View File

@ -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;