sonnet/dictionary-locations.patch

30 lines
1.6 KiB
Diff

diff --git a/src/plugins/hunspell/hunspellclient.cpp b/src/plugins/hunspell/hunspellclient.cpp
index 46963ef..80c2636 100644
--- a/src/plugins/hunspell/hunspellclient.cpp
+++ b/src/plugins/hunspell/hunspellclient.cpp
@@ -47,7 +47,7 @@ SpellerPlugin *HunspellClient::createSpeller(const QString &language)
QStringList HunspellClient::languages() const
{
QStringList lst;
- QDir dir(QStringLiteral("/usr/share/myspell/dicts/"));
+ QDir dir(QStringLiteral("/usr/share/hunspell/"));
if (dir.exists()) {
QStringList lstDic = dir.entryList(QStringList(QStringLiteral("*.dic")), QDir::Files);
foreach (const QString &tmp, lstDic) {
diff --git a/src/plugins/hunspell/hunspelldict.cpp b/src/plugins/hunspell/hunspelldict.cpp
index fda4a4c..489bc9b 100644
--- a/src/plugins/hunspell/hunspelldict.cpp
+++ b/src/plugins/hunspell/hunspelldict.cpp
@@ -31,9 +31,9 @@ HunspellDict::HunspellDict(const QString &lang)
: SpellerPlugin(lang), m_speller(0)
{
qCDebug(SONNET_HUNSPELL) << " HunspellDict::HunspellDict( const QString& lang ):" << lang;
- QString dic = QStringLiteral("/usr/share/myspell/dicts/%1.dic").arg(lang);
+ QString dic = QStringLiteral("/usr/share/hunspell/%1.dic").arg(lang);
if (QFileInfo(dic).exists()) {
- m_speller = new Hunspell(QStringLiteral("/usr/share/myspell/dicts/%1.aff").arg(lang).toUtf8().constData(), dic.toUtf8().constData());
+ m_speller = new Hunspell(QStringLiteral("/usr/share/hunspell/%1.aff").arg(lang).toUtf8().constData(), dic.toUtf8().constData());
} else {
m_speller = 0;
}