clang 3.3 merge)
PR: ports/179034 [1]
Submitted by: Jan Beich <jbeich@tormail.org>,
Nikolai Lifanov <lifanov@mail.lifanov.com> [1]
16 lines
530 B
C++
16 lines
530 B
C++
--- extensions/spellcheck/hunspell/src/mozHunspell.cpp~
|
|
+++ extensions/spellcheck/hunspell/src/mozHunspell.cpp
|
|
@@ -400,6 +400,12 @@ mozHunspell::LoadDictionaryList()
|
|
}
|
|
}
|
|
|
|
+ // load system hunspell dictionaries
|
|
+ nsIFile* hunDir;
|
|
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"),
|
|
+ true, &hunDir);
|
|
+ LoadDictionariesFromDir(hunDir);
|
|
+
|
|
// find dictionaries from extensions requiring restart
|
|
nsCOMPtr<nsISimpleEnumerator> dictDirs;
|
|
rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST,
|