Re: localized resources in root tool
Re: localized resources in root tool
- Subject: Re: localized resources in root tool
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 19 Jan 2003 10:16:48 +0000
On Saturday, January 18, 2003, at 11:09 pm, Finlay Dobbie wrote:
OK, I have a root tool which passes status information back to its
parent process which runs as a user. However, it inherits the
international prefs of root, which are pretty much always English
unless someone enables root, logs in as root and changes them. How can
I get around this? Anybody got any code for discovery of the locale
and loading the correct strings file manually? I vaguely remember this
came up a few years back in relation to CFUserNotification...
OK, I think I found a solution. Get the AppleLanguages array from
NSUserDefaults, then pass that to my tool, and then use the CFBundle
functions about localization with that array to get the fun stuff.
-- Finlay
_______________________________________________
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.