Re: NSSpellChecker setLanguage:
Re: NSSpellChecker setLanguage:
- Subject: Re: NSSpellChecker setLanguage:
- From: Douglas Davidson <email@hidden>
- Date: Fri, 13 Jan 2006 13:19:17 -0800
On Jan 13, 2006, at 1:09 PM, Eric Slosser wrote:
I believe [NSSpellChecker setLanguage:] takes its parameter as a
"language ID designator" or "locale ID designator" or sometimes
even a plain string eg, "English" (but "British English" doesn't
fly). I see (on 10.4.x at least) it returning a "locale ID
designator" when asked via "language:". So "locale ID designator"
seems like the preferred format for setLanguage:'s parameter.
Can someone confirm?
I tried passing in @"zh-Hant" and "zh-TW", and setLanguage:
returned NO, but I suspect that's because I don't have a dictionary
for traditional Chinese. How can I find out what dictionaries ARE
installed?
The argument is intended to be in the same format as CFBundle
localizations, i.e. by preference forms like "en_US", "zh-Hans", or
"zh_TW", but for compatibility language names such as "French" will
be accepted. The list of installed spell checkers is not currently
exposed, though presumably it would be possible to examine the info
dictionaries of installed spell checker bundles.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden