Files
haikuports/kde-frameworks/sonnet/patches/sonnet-5.93.0.patchset
Gerasim Troeglazov 36bf37c772 sonnet: bump version
2022-05-09 12:44:58 +10:00

47 lines
1.5 KiB
Plaintext

From 9612af4419c646242b392225d667ebf51fb322d0 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 2 Mar 2019 23:57:01 +1000
Subject: Add hunspell dictionary paths for Haiku
diff --git a/src/plugins/hunspell/hunspellclient.cpp b/src/plugins/hunspell/hunspellclient.cpp
index 3c7508d..bda8d60 100644
--- a/src/plugins/hunspell/hunspellclient.cpp
+++ b/src/plugins/hunspell/hunspellclient.cpp
@@ -41,6 +41,9 @@ HunspellClient::HunspellClient(QObject *parent)
};
#ifdef Q_OS_WIN
maybeAddPath(QStringLiteral(SONNET_INSTALL_PREFIX "/bin/data/hunspell/"));
+#elif defined(Q_OS_HAIKU)
+ maybeAddPath(QStringLiteral("/system/data/hunspell/"));
+ maybeAddPath(QStringLiteral("~/config/non-packaged/data/hunspell/"));
#else
maybeAddPath(QStringLiteral("/System/Library/Spelling"));
maybeAddPath(QStringLiteral("/usr/share/hunspell/"));
--
2.28.0
From f07862f704b28c94c73d6b273655ddf1820bacf4 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 14 Dec 2020 16:14:26 +0300
Subject: Set en_US as default language
diff --git a/src/core/settings.cpp b/src/core/settings.cpp
index 4a82e71..8009611 100644
--- a/src/core/settings.cpp
+++ b/src/core/settings.cpp
@@ -184,7 +184,7 @@ bool Settings::defauktSkipRunTogether()
QString Settings::defaultDefaultLanguage()
{
- return QLocale::system().name();
+ return QStringLiteral("en_US");
}
QStringList Settings::defaultPreferredLanguages()
--
2.28.0