• 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: Getting the default language with AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the default language with AppleScript


  • Subject: Re: Getting the default language with AppleScript
  • From: Bill <email@hidden>
  • Date: Sat, 24 Jul 2004 14:57:16 +0800

I had him check System Preferences/International/Formats and his is set to
"United States". (Even when I changed mine to "Custom", logged out and in,
I still got "en_US" for mine.) He has BSD installed normally.

Paul,

I tried to modify the setting in System Preferences/International/Formats, each time I change the region, the shell command "defaults read -g" reflects the change immediately.

-- in Terminal, Hong Kong, China
$ defaults read -g AppleLocale
en_HK

-- change to India
$ defaults read -g AppleLocale
en_IN

-- or change to Zimbabwe
$ defaults read -g AppleLocale
en_ZW


BTW, I guess AppleLocale doesn't represent the default language, you may investigate AppleLanguages.

-- in Terminal
$ defaults read -g AppleLanguages
(en, "zh_TW", "zh_CN")

I guess the first item (en, on my machine) represents the default language.


Regards
bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Getting the default language with AppleScript
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Problem getting position of desktop items
  • Next by Date: Re: Getting the default language with AppleScript
  • Previous by thread: Re: Getting the default language with AppleScript
  • Next by thread: Re: Getting the default language with AppleScript
  • Index(es):
    • Date
    • Thread