Is there a method of determining the localized language of a user’s OS by grabbing, say:
tell application "Finder"
set version_of_Finder to version
end tell
US versions return just “10.3.2”…but I thought I remember reading somewhere that non-US language codes include some kind of letter sequence that specifies the particular host language. Is there a list of these codes?
Using the Finder’s version isn’t going to work. It’s been a long, long time since that method was used.
Under Mac OS X there is only one Finder version for all countries - Mac OS X uses a different language localization file in the application bundle based on the user preferences, so all Finders will report the same version (assuming it’s running).
Instead, under Mac OS X you should use something like:
set currentLang to defaults read "Apple Global Domain" AppleLocale
which will return the current language setting for the current user.
The actual values return match the ISO standards for country codes.