This commit is contained in:
niksedk 2023-09-30 20:58:48 +02:00
parent e0ca28a1e4
commit 681035c82e
4 changed files with 5 additions and 3 deletions

View File

@ -2280,6 +2280,7 @@ can edit in same subtitle file (collaboration)</Information>
<VideoPlayer>Video player</VideoPlayer>
<WaveformAndSpectrogram>Waveform/spectrogram</WaveformAndSpectrogram>
<Tools>Tools</Tools>
<AutoTranslate>Auto-translate</AutoTranslate>
<WordLists>Word lists</WordLists>
<SsaStyle>ASS/SSA Style</SsaStyle>
<Network>Network</Network>

View File

@ -101,7 +101,7 @@ namespace Nikse.SubtitleEdit.Core.AutoTranslate
var culture = cultures.FirstOrDefault(p=>p.TwoLetterISOLanguageName == code);
if (culture != null)
{
result.Add(new TranslationPair(culture.Name, code));
result.Add(new TranslationPair(culture.EnglishName, code));
}
}

View File

@ -30,8 +30,6 @@ namespace Nikse.SubtitleEdit.Forms.Translate
private Process _processNllbApi;
private Process _processLibreTranslate;
public AutoTranslate(Subtitle subtitle, Subtitle selectedLines, string title, Encoding encoding)
{
UiUtil.PreInitialize(this);

View File

@ -6127,6 +6127,9 @@ namespace Nikse.SubtitleEdit.Logic
case "Settings/Tools":
language.Settings.Tools = reader.Value;
break;
case "Settings/AutoTranslate":
language.Settings.AutoTranslate = reader.Value;
break;
case "Settings/WordLists":
language.Settings.WordLists = reader.Value;
break;