merged from cdsens branch

This commit is contained in:
Jean-Francois Dockes
2012-09-13 12:28:42 +02:00
17 changed files with 451 additions and 164 deletions
-2
View File
@@ -14,9 +14,7 @@
* Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "autoconfig.h"
#endif
#include <stdio.h>
#include <sys/stat.h>
+4 -3
View File
@@ -258,10 +258,11 @@ bool ConfIndexer::createStemmingDatabases()
bool ConfIndexer::createStemDb(const string &lang)
{
if (!m_db.open(Rcl::Db::DbUpd)) {
if (!m_db.open(Rcl::Db::DbUpd))
return false;
}
return m_db.createStemDbs(vector<string>(1, lang));
vector<string> langs;
stringToStrings(lang, langs);
return m_db.createStemDbs(langs);
}
// The language for the aspell dictionary is handled internally by the aspell