From eb5f0e980dc64d7b8fccf380af9e40a09c6c6dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Thu, 23 Dec 2021 15:21:05 +0100 Subject: [PATCH] SEBWIN-519, #194: Set current language as default value for accept language list of browser. --- SafeExamBrowser.Browser/BrowserApplication.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SafeExamBrowser.Browser/BrowserApplication.cs b/SafeExamBrowser.Browser/BrowserApplication.cs index b9e8e5b9..eb69d1e8 100644 --- a/SafeExamBrowser.Browser/BrowserApplication.cs +++ b/SafeExamBrowser.Browser/BrowserApplication.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO; using System.Linq; using System.Threading; @@ -303,6 +304,7 @@ namespace SafeExamBrowser.Browser var error = logger.LogLevel == LogLevel.Error; var cefSettings = new CefSettings(); + cefSettings.AcceptLanguageList = CultureInfo.CurrentUICulture.Name; cefSettings.CachePath = appConfig.BrowserCachePath; cefSettings.CefCommandLineArgs.Add("touch-events", "enabled"); cefSettings.LogFile = appConfig.BrowserLogFilePath;