9cd6a39c3e
Mozilla Firefox is a free, open-source and cross-platform web browser for Windows, Linux, MacOS X and many other operating systems. It is fast and easy to use, and offers many advantages over other web browsers, such as tabbed browsing and the ability to block pop-up windows. Firefox also offers excellent bookmark and history management, and it can be extended by developers using industry standards such as XML, CSS, JavaScript, C++, etc. Many extensions are available. This package tracks 38 ESR.
21 lines
784 B
C++
21 lines
784 B
C++
$NetBSD: patch-extensions_spellcheck_hunspell_src_mozHunspell.cpp,v 1.1 2015/07/09 14:13:52 ryoon Exp $
|
|
|
|
Load system hunspell dictionaries.
|
|
|
|
--- extensions/spellcheck/hunspell/src/mozHunspell.cpp.orig 2015-05-04 00:43:34.000000000 +0000
|
|
+++ extensions/spellcheck/hunspell/src/mozHunspell.cpp
|
|
@@ -400,6 +400,14 @@ mozHunspell::LoadDictionaryList(bool aNo
|
|
}
|
|
}
|
|
|
|
+ // load system hunspell dictionaries
|
|
+ nsCOMPtr<nsIFile> hunDir;
|
|
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("@PREFIX@/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,
|