summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-04-01 17:47:59 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-04-01 15:58:09 +0000
commitfcbaab3ff6450b63d3cf6bf1d120c7a71055f019 (patch)
treebe3848816bc14e6422031b76c7dc0e41a9b5ce17 /src/core/browser_context_qt.cpp
parenta66ba23359b1bd04a2d77357cf27c891249a8316 (diff)
Use default language as default spell-checking language
Instead of hard-coding en-US as the default, read the Qt default and use that. Change-Id: I118d2e7b9b4486dd32b2ccbd42c90bc1cee2257f Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
Diffstat (limited to 'src/core/browser_context_qt.cpp')
-rw-r--r--src/core/browser_context_qt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/browser_context_qt.cpp b/src/core/browser_context_qt.cpp
index 5685c2dcd..dc337493e 100644
--- a/src/core/browser_context_qt.cpp
+++ b/src/core/browser_context_qt.cpp
@@ -78,7 +78,7 @@ BrowserContextQt::BrowserContextQt(BrowserContextAdapter *adapter)
scoped_refptr<PrefRegistrySimple> registry(new PrefRegistrySimple());
// Initial spellcheck settings
- std::string spellcheckLang("en-US");
+ std::string spellcheckLang = QLocale().bcp47Name().toStdString();
base::ListValue *dictionaries = new base::ListValue;
dictionaries->AppendString(spellcheckLang);
registry->RegisterListPref(prefs::kSpellCheckDictionaries, dictionaries);