pkgsrc/mail/thunderbird31/patches/patch-mozilla_extensions_spellcheck_hunspell_src_mozHunspell.cpp
ryoon 6e95e654f9 Import thunderbird31-31.7.0 as mail/thunderbird31.
Mozilla Thunderbird is a redesign of the Mozilla mail component. The
goal is to produce a cross platform stand alone mail application using
the XUL user interface language. This version tracks 31 ESR.
2015-07-13 17:49:26 +00:00

17 lines
694 B
C++

$NetBSD: patch-mozilla_extensions_spellcheck_hunspell_src_mozHunspell.cpp,v 1.1 2015/07/13 17:49:26 ryoon Exp $
--- mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp.orig 2013-10-23 22:08:56.000000000 +0000
+++ mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp
@@ -417,6 +417,12 @@ mozHunspell::LoadDictionaryList()
}
}
+ // load system hunspell dictionaries
+ nsIFile* hunDir;
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("@PREFIX@/share/hunspell"),
+ true, &hunDir);
+ LoadDictionariesFromDir(hunDir);
+
// find dictionaries from extensions requiring restart
nsCOMPtr<nsISimpleEnumerator> dictDirs;
rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST,