Objective is to have an applescript installer program auto-detect if the system uses any form of French. If yes then it displays a french menu, otherwise the menu is english.
I was looking at http://macscripter.net/viewtopic.php?id=19528
I am not sure how many variations of french systems there are for OSX. Unless I am mistaken, Canadian French uses CA. So should I include that as a possibility? Or will FR cater for all french variations?
In the installer presently I am testing:
do shell script "defaults read .GlobalPreferences AppleCollationOrder"
if result is "fr" then
display dialog (" QUITTEZ ...")
else
display dialog ("CLOSE ...")
end if
Or should I use something like
do shell script "defaults read .GlobalPreferences AppleCollationOrder"
if result starts with "fr"
display dialog (" QUITTEZ ...")
else
display dialog ("CLOSE ...")
end if
Edited to remove error.
For the past year I have provided a separate installer for each of english and french. Ideally only one would be needed. Of course I could use a choose language menu but I would prefer to keep menu steps to a minimum.