learnmac

Thursday, August 17, 2006

Simple way to Get the current locale on Mac OS

To get the currently selected locale:
defaults read NSGlobalDomain AppleLocale

To get the array of preferred languagesĀ 
defaults read NSGlobalDomain AppleLanguages

0 Comments:

Post a Comment

<< Home