summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@theqtcompany.com>2015-02-10 11:32:41 +0100
committerPierre Rossi <pierre.rossi@theqtcompany.com>2015-02-11 13:39:15 +0000
commit21b5fb70e6027b048661eef4f7f6ae1b98052832 (patch)
tree83ef79d4d4e83ba71d4111d484eeff49628d277c
parentcd307cdb7d4dfbdaf7c9e7a81f9c39e477909621 (diff)
Forward the application locale in the right format
Chromium expects bcp47. Change-Id: I0403fe38e431bbc184d833009e9343235dc543d9 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
-rw-r--r--src/core/content_browser_client_qt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp
index d9f7e31be..7251e2db0 100644
--- a/src/core/content_browser_client_qt.cpp
+++ b/src/core/content_browser_client_qt.cpp
@@ -437,7 +437,7 @@ content::LocationProvider *ContentBrowserClientQt::OverrideSystemLocationProvide
std::string ContentBrowserClientQt::GetApplicationLocale()
{
- return QLocale().name().toStdString();
+ return QLocale().bcp47Name().toStdString();
}
content::DevToolsManagerDelegate* ContentBrowserClientQt::GetDevToolsManagerDelegate()