From d3039ac40a12d5f3954b55a62e1e1f34327a8883 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Sat, 16 May 2020 22:05:52 +0200 Subject: [PATCH] Remember spell check language - thx Legion :) --- src/Forms/SpellCheck.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/SpellCheck.cs b/src/Forms/SpellCheck.cs index 3eff2b97f..fc9d37828 100644 --- a/src/Forms/SpellCheck.cs +++ b/src/Forms/SpellCheck.cs @@ -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) {