• 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: Finding Preference International Languages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding Preference International Languages


  • Subject: Re: Finding Preference International Languages
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 16 Dec 2002 16:32:26 -0800

On Monday, December 16, 2002, at 07:21 AM, Steve Sheets wrote:

I have been localizing my program, using interface builder & localized.string for strings, but I have one question. Can the program be told what language the user is currently running under? Or what which of the localized languages the program is currently using? I need to know when my program is running in English, vs running in German or Spanish.

Usually the best way to handle something like this is to create a localized string, the values of which you will set to be the information that you need to know about the current localization in the format best suited to your needs. NSBundle/CFBundle can tell you the name of the .lproj directory for the localization you are currently running in (see CFBundle.h for more information on how to do this), but there's no reason to expect that to be the information you really want or in the format you want it in.

Douglas Davidson
_______________________________________________
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.

References: 
 >Finding Preference International Languages (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: Keeping a drawer to a fixed size
  • Next by Date: Writing nested dictionary fails
  • Previous by thread: Finding Preference International Languages
  • Next by thread: timer below one second wanted
  • Index(es):
    • Date
    • Thread