• 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: Detecting locale with preinstall script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting locale with preinstall script


  • Subject: Re: Detecting locale with preinstall script
  • From: Philip Aker <email@hidden>
  • Date: Fri, 24 Oct 2008 01:48:16 -0700

On Oct 24, 2008, at 1:32 AM, Glover,David wrote:

I need to detect what the locale of the current users OS is with a preinstall script, which is written in perl.

I’m assuming that this information is stored in a plist somewhere, but I haven’t located it as yet! Does anybody know where or how I can programmatically detect the locale / language?

Here are some Terminal calls. I don't know if they are the ones recommended by Apple:


defaults read -g AppleLocale;
defaults read -g AppleLanguages;


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Detecting locale with preinstall script (From: "Glover,David" <email@hidden>)

  • Prev by Date: Detecting locale with preinstall script
  • Next by Date: file associations
  • Previous by thread: Detecting locale with preinstall script
  • Next by thread: file associations
  • Index(es):
    • Date
    • Thread