• 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: How to switch language (nib)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to switch language (nib)


  • Subject: Re: How to switch language (nib)
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 28 Oct 2003 15:05:12 -0800

On Tuesday, October 28, 2003, at 01:21 PM, Christopher Corbell wrote:

I'd probably do this with something like a private
AppleScript or shell script that would move .lproj
folders into and out of the disabled folder (like the
Finder does) and then re-launch the app. This assumes
the user has write privileges on the app bundle.

Maybe someone else has a better solution?

No, don't do that. You can relaunch the application with the command-line options -AppleLanguages (es,en) to override the user's localization preferences in favor of Spanish. (Use quotes around the second argument if you are doing this yourself from the shell.) Alternatively, if you wish to load Spanish resources without relaunching, then you cannot use the default bundle localization mechanism to do so, but you can use the CFBundle functions and/or NSBundle methods that take a localization as a parameter.

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: 
 >Re: How to switch language (nib) (From: Christopher Corbell <email@hidden>)

  • Prev by Date: Re: Reporting bugs... (Was-- Re: Xcode bug)
  • Next by Date: Re: How to switch language (nib)
  • Previous by thread: Re: How to switch language (nib)
  • Next by thread: Re: How to switch language (nib)
  • Index(es):
    • Date
    • Thread