Kaydet (Commit) 4f46a493 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

tdf#124909: Assume the iOS de_DE dictionary works well enough generically

On macOS, the system says it has a generic "de" dictionary. But on
iOS, it says it is specificaly "de_DE". Assume it is good enough for
the other German variants, too, for now.

Change-Id: I745cc02c1ffa774dbcbfdc1d775ce358957f04f8
üst 225e10cd
......@@ -140,6 +140,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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment