Hello and happy holidays everyone!
I would like to ask your help to understand if there's a way to gather the main OS language set at user level.
We have a mixed environment with two languages being used (Italian and English) with only some single-language applications installed accordingly (Office 2011 and Adobe's).
Knowing which language is being used would be very helpful to create smartgroups and deploy apps/updates (such as Office 14.2.5) where there are separate updates for each country.
Many thanks for your support!
Ciao
Carlo
Solved
Extension attribute to gather OS main language, is it possible?
Best answer by stevewood
Make sure you are giving the full path to the .GlobalPreferences file. I tried your command on my machine and it did not work, until I added /Library/Preferences in front of .GlobalPreferences:
#!/bin/sh
PRIMLOCALE=$( defaults read /Library/Preferences/.GlobalPreferences AppleLanguages | tr -d [:space:] | cut -c2-3 )
echo "<result>$PRIMLOCALE</result>"
exit 0Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
