• 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: localized resources in root tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: localized resources in root tool
      • From: Douglas Davidson <email@hidden>
References: 
 >localized resources in root tool (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: How can I release an NSString?
  • Next by Date: Re: AppKit deadlock
  • Previous by thread: localized resources in root tool
  • Next by thread: Re: localized resources in root tool
  • Index(es):
    • Date
    • Thread