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: Get current language



(Returning to a topic after a break of a few days)  
> > If you want this in order to implement multi-localization 
> for an app 
> > that isn't bundled, then the API that will do what you want is 
> > CFBundleCopyPreferredLocalizationsFromArray. It's available in 
> > CarbonLib 1.1 or later.

Ok, I've tried that.

Mac OS X.3.7.

I pass an array of the three CFStrings "de" , "en", "fr" in that
order. Mac OS Preferences are set to a list of languages starting
French, Japanese, English, German.

The return value I get is an array of one element, but the
element is "en", not as I would expect "fr". 

I am running the application from the Finder.  I suspect the 
problem is that it is using the "current application context" and
has made up its mind that this CFM application, with no VERS
resource, is English?

CFBundleCopyLocalizationsForPreferences looks better but is only
in MacOS X.2.

Is there a way around this?

Aandi Inston

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >RE: Get current language (From: "Aandi Inston" <email@hidden>)



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.