Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Finding the users highest ranked language, regardless of what an app supports



CFArray languagesArray = CFPreferencesCopyValue(CFSTR("AppleLanguages"),
kCFPreferencesAnyApplication,
kCFPreferencesCurrentUser, kCFPreferencesAnyHost);

This call will give you CFArray of system preferred language order as set in
the Language tab of International system preferences.
This only works if you've actually gone into the prefs and set the order.
This call returns nil if you have not set the order.
The array of CFStrings returned can be any combination of locale
abbreviations (en_US),
local names (English), or abreviations (en).



HTH,
Lev
-----Original Message-----
From: Jim O'Connor
To: email@hidden
Sent: 5/30/2003 3:41 PM
Subject: Finding the users highest ranked language, regardless of what an
app supports

I need to be able to find out what is at the top of the list the user
sets
in the International panel of the system preferences, regardless what
the
app supports. Any pointers?


Thanks.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.