Remember spell check language - thx Legion :)

This commit is contained in:
Nikolaj Olsson 2020-05-16 22:05:52 +02:00
parent 38a75d048d
commit d3039ac40a

View File

@ -999,7 +999,7 @@ namespace Nikse.SubtitleEdit.Forms
_languageName = LanguageAutoDetect.AutoDetectLanguageName(_languageName, subtitle);
if (_languageName != null && _languageName.Length > 3)
{
string start = _languageName.Substring(0, 3);
string start = _languageName.Substring(0, 2);
if (_languageName.StartsWith(start, StringComparison.Ordinal) && Configuration.Settings.General.SpellCheckLanguage != null &&
Configuration.Settings.General.SpellCheckLanguage.StartsWith(start, StringComparison.Ordinal) && _languageName != Configuration.Settings.General.SpellCheckLanguage)
{