Re: natural languages
Re: natural languages
- Subject: Re: natural languages
- From: Andreas Schempp <email@hidden>
- Date: Thu, 24 Apr 2003 21:51:01 +0200
On thing is to use [[NSBundle mainBundle] preferredLocalizations]
I think this would only return prefered localizations based on the
one's built into you application
----
To get the languages the user has set as preferred in the system
preferences:
one solution is to get them from the system preferences itself...
NSArray * arrayOfPreferredLanguages = [[NSUserDefaults
persistentDomainForName:@"com.apple.systempreferences"]
objectForKey:@"AvailableLanguages"];
---
Butt I realy sure there are better ways to get those things...
And there should be another locations where the system preferences are
saved, because I've set Swiss-German as my first language, and this one
is not in the "AvailableLanugages" array
Am Donnerstag, 24.04.03 um 17:48 Uhr schrieb Devon E Bowen:
I need to get access to the list of the user's preferred languages. I
call an xml-rpc service and want to pass along the language list in
case the server needs to return an error message. Then it can know what
language to use for this message. So, for example, I might send "en,
de, fr". Is there any way I can ask the Cocoa app for this information?
Everything I know about the internationalization classes seems to
imply that this info is abstracted away and not available to me
directly.
Any pointers would be appreciated.
Devon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.