summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm14
1 files changed, 14 insertions, 0 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index f97c0945afe9..823687c2cb25 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -139,6 +139,20 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
postspdict.push_back( pLangStr );
}
}
+#ifdef IOS
+ // iOS says it has specifically de_DE, but let's assume it is good enough for the other
+ // variants, too, for now.
+ else if ([pLangStr isEqualToString:@"de_DE"])
+ {
+ const std::vector<NSString*> aDE
+ { @"AT", @"BE", @"CH", @"DE", @"LI", @"LU" };
+ for (auto c: aDE)
+ {
+ pLangStr = [@"de_" stringByAppendingString: c];
+ postspdict.push_back( pLangStr );
+ }
+ }
+#endif
else if ([pLangStr isEqualToString:@"en"])
{
// System has en_AU, en_CA, en_GB, and en_IN. Add the rest.