diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2015-01-12 16:39:52 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-01-13 11:37:47 +0100 |
commit | aeb2abb6145158491e8ebe9d573df76e73c3ab13 (patch) | |
tree | c4d4573dde0b875391d8cfbeb02ea3ea219fdc03 /src/core/content_browser_client_qt.cpp | |
parent | bc79678dfb91648d1d31b15732f31739abe5df55 (diff) |
Make Chromium use the same locale as Qt
Tell Chromium to use the locale Qt has determined as the default locale.
Change-Id: I16986d84afcc0b496a22441b4a92fc09a5c89121
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r-- | src/core/content_browser_client_qt.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index c1dc696bd..1f29e4bec 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -69,6 +69,7 @@ #include "access_token_store_qt.h" #include <QGuiApplication> +#include <QLocale> #include <QOpenGLContext> #include <qpa/qplatformnativeinterface.h> @@ -402,3 +403,8 @@ content::LocationProvider *ContentBrowserClientQt::OverrideSystemLocationProvide return 0; // Leave it up to Chromium to figure something out. #endif } + +std::string ContentBrowserClientQt::GetApplicationLocale() +{ + return QLocale().name().toStdString(); +} |