• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: natural languages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: natural languages
      • From: Douglas Davidson <email@hidden>
References: 
 >natural languages (From: Devon E Bowen <email@hidden>)

  • Prev by Date: Quicktime Atoms
  • Next by Date: NSFileManager isReadableFileAtPath crashed!
  • Previous by thread: natural languages
  • Next by thread: Re: natural languages
  • Index(es):
    • Date
    • Thread