summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_qt.cpp
diff options
context:
space:
mode:
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);