简体   繁体   中英

How to get the language of mac os through terminal

I know language settings can be changed in the Language&Text window by mouse drag. But can I get the language info through the terminal, through a Python script, or through some other scripts?

Open Terminal (located in /Applications/Utilities/). Type or paste this command in Terminal: sudo languagesetup Press Return. When prompted for a password, enter your account password and press Return again. If your user has no password (a blank password) and you are using Mac OS X v10.5 or later, see sudo command requires a non-blank admin password. A list of available languages will be displayed. Type the number that appears next to the language you want to use, then press Return. Quit Terminal.

http://support.apple.com/kb/HT4102

Google first. ALWAYS!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM