[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - lingucomponent/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 18 14:09:46 UTC 2021
lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 25 ++++++++++++
1 file changed, 25 insertions(+)
New commits:
commit c7411af8f56c5120c3571e2bf0bce86e9c6b4559
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Mar 18 13:45:18 2021 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Mar 18 15:09:08 2021 +0100
Use the iOS fr_FR and it_IT dictionaries for other relevant countries, too
Fixes https://github.com/CollaboraOnline/online/issues/1463
Change-Id: I9fffd4bc9499aee2098258f5c3a9181330b339a1
Signed-off-by: Tor Lillqvist <tml at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112670
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index ab463e7d43aa..822e7481daac 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -195,11 +195,36 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
postspdict.push_back( pLangStr );
}
}
+#ifdef IOS
+ else if ([pLangStr isEqualToString:@"fr_FR"])
+ {
+ const std::vector<NSString*> aFR
+ { @"BE", @"BF", @"BJ", @"CA", @"CH", @"CI", @"FR", @"LU", @"MC", @"ML",
+ @"MU", @"NE", @"SN", @"TG" };
+ for (auto c: aFR)
+ {
+ pLangStr = [@"fr_" stringByAppendingString: c];
+ postspdict.push_back( pLangStr );
+ }
+ }
+#endif
else if ([pLangStr isEqualToString:@"it"])
{
postspdict.push_back( @"it_CH" );
postspdict.push_back( @"it_IT" );
}
+#ifdef IOS
+ else if ([pLangStr isEqualToString:@"it_IT"])
+ {
+ const std::vector<NSString*> aIT
+ { @"CH", @"IT" };
+ for (auto c: aIT)
+ {
+ pLangStr = [@"it_" stringByAppendingString: c];
+ postspdict.push_back( pLangStr );
+ }
+ }
+#endif
else if ([pLangStr isEqualToString:@"ko"])
{
postspdict.push_back( @"ko_KR" );
More information about the Libreoffice-commits
mailing list