Re: Finding Preference International Languages
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.