mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make navigator.language return the same value as CefSettings.locale (issue #429).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@382 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -86,10 +86,7 @@ void CefProcessUIThread::Init() {
|
||||
// Provides path resolution required for locating locale pack files.
|
||||
ui::RegisterPathProvider();
|
||||
|
||||
std::string localeStr = CefString(&settings.locale);
|
||||
if (localeStr.empty())
|
||||
localeStr = "en-US";
|
||||
webkit_glue::InitializeResourceBundle(localeStr);
|
||||
webkit_glue::InitializeResourceBundle(_Context->locale());
|
||||
|
||||
PlatformInit();
|
||||
|
||||
|
Reference in New Issue
Block a user