зеркало из https://github.com/mozilla/pjs.git
Bug 499660 Firefox should use English dictionary by default with CJK locale r=neil
This commit is contained in:
Родитель
ce47708c0b
Коммит
6dbb3214df
|
@ -210,6 +210,12 @@ nsEditorSpellCheck::InitSpellChecker(nsIEditor* aEditor, PRBool aEnableSelection
|
|||
PRBool setDictionary = PR_FALSE;
|
||||
if (NS_SUCCEEDED(rv) && !dictName.IsEmpty()) {
|
||||
rv = SetCurrentDictionary(dictName.get());
|
||||
|
||||
// fall back to "en-US" if the current locale doesn't have a dictionary.
|
||||
if (NS_FAILED(rv)) {
|
||||
rv = SetCurrentDictionary(NS_LITERAL_STRING("en-US").get());
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv))
|
||||
setDictionary = PR_TRUE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче