[Chandler-dev] Re: error in i18nmanager.py ?
Grant Baillie
grant at osafoundation.org
Mon Aug 21 11:19:14 PDT 2006
On 18 Aug, 2006, at 08:00, Ken Krugler wrote:
> Don't know if you consider this part of the user's i18n settings,
> but the default UI language is often tossed into this set.
>
> For example:
>
> http://www.krugle.com/files/cvs/savannah.gnu.org/gnustep/core/base/
> Source/NSUserDefaults.m
>
> See the userLanguages method. I know, it's Objective C - I don't
> really understand it :)
>
> Of concern is that ICU must use C apis, I believe, and I don't know
> the level of support provided for this area of Mac OS X
> functionality via C calls. I've pinged a friend at Apple.
That code (or something nearly equivalent) isn't hard to replicate
with the pure C CFPreferences and CFLocale APIs in OS X. Annoyingly,
CFLocale has a CFLocaleCopyCurrent() API that should just give you
the default UI language right away, but for reasons that are beyond
me, this ignores language settings in System Preferences's
International pane.
--Grant
More information about the chandler-dev
mailing list