From fcbaab3ff6450b63d3cf6bf1d120c7a71055f019 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 1 Apr 2016 17:47:59 +0200 Subject: 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 --- src/core/browser_context_qt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/browser_context_qt.cpp') 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 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); -- cgit v1.2.3