> var > langArray: CFArrayRef; > begin > > langArray > :=CFArrayRef(CFPreferencesCopyAppValue(CFSTR('AppleLanguages'), > kCFPreferencesCurrentApplication)) > end; > > Then use CFArrayGetCount to get the number of elements in the array, > CFArrayGetValueAtIndex to get the actual values (they are CFStrings). > And keep in mind those are not canonical names (as mentioned in the > last link, you may want to call > CFLocaleCreateCanonicalLanguageIdentifierFromString() to get the > canonical name; although you'll have to import this function manually, > as it does not yet exist in MacOSAll) > > > Jonas
Thanks Jonas, that did the trick ;-) Preferable we will work on a more clean Mac OS X friendly release of our application on the next version, but to get the existing code working we need this. Thanks, Normann _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal