lingucomponent/source/spellcheck/macosxspell/macspellimp.mm |   25 ++++++++++++
 1 file changed, 25 insertions(+)

New commits:
commit 06ee74dbd15282684e356ce25fbfbd5b52105170
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Thu Mar 18 13:45:18 2021 +0200
Commit:     Tor Lillqvist <t...@iki.fi>
CommitDate: Mon Apr 5 18:01:26 2021 +0300

    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 <t...@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 75a1b04183a5..60db3ba3d409 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -196,11 +196,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" );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to