blob: 165e7f647be3f969fbb91ce6eb9b3431e4c2947d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp~
+++ mozilla/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, (nsILocalFile**)&hunDir);
+ LoadDictionariesFromDir(hunDir);
+
// find dictionaries from extensions requiring restart
nsCOMPtr<nsISimpleEnumerator> dictDirs;
rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST,
|