Fix for wrong casing - thx oep42 :)

Fix #6597
This commit is contained in:
niksedk 2023-01-20 08:26:24 +01:00
parent d7af3e1459
commit 41a68f6456

View File

@ -348,6 +348,11 @@ namespace Nikse.SubtitleEdit.Core.AudioToText
// fix casing for names
var nameList = new NameList(Configuration.DictionariesDirectory, language, Configuration.Settings.WordLists.UseOnlineNames, Configuration.Settings.WordLists.NamesUrl);
var nameListInclMulti = nameList.GetAllNames();
if (nameListInclMulti.Contains("US") && language == "en")
{
nameListInclMulti.Remove("US");
}
var lastLine = string.Empty;
foreach (var paragraph in subtitle.Paragraphs)
{