lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 7527afeb305bb01340461f6fddf6d13a5acca3e3 Author: Tor Lillqvist <t...@iki.fi> AuthorDate: Wed Mar 17 09:14:44 2021 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Mon May 17 09:25:07 2021 +0200 Don't use the macOS system German spelling dictionary for Swiss German The system German dictionary accepts 'ß' which is not used in Swiss Standard German but completely replaced with 'ss'. We assume that the LibreOffice German dictionary is installed, too. It has correct spelling for de_CH. It would be good if we knew in the macosxspell code whether the LibreOffice German dictionary installed, and act correspondingly. But figuring that out seems more complicated than what I am willing to spend on this for now. Change-Id: I380d7734cea34a2408d9ed20a8c3d9efe6a8fea2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115690 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm index 874f14bc0f19..b4a206ada437 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm @@ -131,8 +131,9 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales() } else if ([pLangStr isEqualToString:@"de"]) { + // Not de_CH and de_LI, though. They need separate dictionaries. const std::vector<NSString*> aDE - { @"AT", @"BE", @"CH", @"DE", @"LI", @"LU" }; + { @"AT", @"BE", @"DE", @"LU" }; for (auto c: aDE) { pLangStr = [@"de_" stringByAppendingString: c]; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits