SEBWIN-519, #194: Set current language as default value for accept language list of browser.

This commit is contained in:
Damian Büchel 2021-12-23 15:21:05 +01:00
parent 4897d0ab6f
commit eb5f0e980d

View file

@ -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;