Changeset View
Changeset View
Standalone View
Standalone View
head/mail/thunderbird/files/patch-bug991253
| Property | Old Value | New Value |
|---|---|---|
| fbsd:nokeywords | null | yes \ No newline at end of property |
| svn:eol-style | null | native \ No newline at end of property |
| svn:mime-type | null | text/plain \ No newline at end of property |
| --- extensions/spellcheck/hunspell/glue/mozHunspell.cpp~ | |||||
| +++ extensions/spellcheck/hunspell/glue/mozHunspell.cpp | |||||
| @@ -392,6 +392,14 @@ mozHunspell::LoadDictionaryList(bool aNo | |||||
| } | |||||
| } | |||||
| + // load system hunspell dictionaries | |||||
| + nsCOMPtr<nsIFile> hunDir; | |||||
| + NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"), | |||||
| + true, getter_AddRefs(hunDir)); | |||||
| + if (hunDir) { | |||||
| + LoadDictionariesFromDir(hunDir); | |||||
| + } | |||||
| + | |||||
| // find dictionaries from extensions requiring restart | |||||
| nsCOMPtr<nsISimpleEnumerator> dictDirs; | |||||
| rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST, | |||||