Changeset View
Changeset View
Standalone View
Standalone View
www/firefox/files/patch-bug991253
--- extensions/spellcheck/hunspell/glue/mozHunspell.cpp~ | --- extensions/spellcheck/hunspell/glue/mozHunspell.cpp~ | ||||
+++ extensions/spellcheck/hunspell/glue/mozHunspell.cpp | +++ extensions/spellcheck/hunspell/glue/mozHunspell.cpp | ||||
@@ -392,6 +392,14 @@ mozHunspell::LoadDictionaryList(bool aNo | @@ -336,6 +336,14 @@ mozHunspell::LoadDictionaryList(bool aNotifyChildProcesses) | ||||
} | } | ||||
} | } | ||||
+ // load system hunspell dictionaries | + // load system hunspell dictionaries | ||||
+ nsCOMPtr<nsIFile> hunDir; | + nsCOMPtr<nsIFile> hunDir; | ||||
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"), | + NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"), | ||||
+ true, getter_AddRefs(hunDir)); | + true, getter_AddRefs(hunDir)); | ||||
+ if (hunDir) { | + if (hunDir) { | ||||
+ LoadDictionariesFromDir(hunDir); | + LoadDictionariesFromDir(hunDir); | ||||
+ } | + } | ||||
+ | + | ||||
// find dictionaries from extensions requiring restart | // find dictionaries from restartless extensions | ||||
nsCOMPtr<nsISimpleEnumerator> dictDirs; | for (int32_t i = 0; i < mDynamicDirectories.Count(); i++) { | ||||
rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST, | LoadDictionariesFromDir(mDynamicDirectories[i]); |