Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I know the common sudo languagesetup to set the system language. Does someone know how to get the system language or the language that was selected when Mac OS X was installed?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

The left part of osascript -e 'user locale of (get system info)' is the language selected in Setup Assistant (I think).

The language at the top of the list in the Language & Text preferences should be the second line of defaults read -g AppleLanguages.

share|improve this answer
    
osascript -e 'user locale of (get system info)' is returning the locale as same as following code gives NSLocale *locale; locale = [NSLocale currentLocale]; NSLog(@"Current locale Identifier %@",[locale localeIdentifier]); This is the system language for the currently logged in user right?not the default system language. –  Akbar Jun 11 '12 at 7:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.