mirror of
https://git.freebsd.org/ports.git
synced 2025-06-28 08:00:31 -04:00
clang 3.3 merge) PR: ports/179034 [1] Submitted by: Jan Beich <jbeich@tormail.org>, Nikolai Lifanov <lifanov@mail.lifanov.com> [1]
15 lines
530 B
C++
15 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,
|