Re: How to switch language (nib)
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.