[Pythonmac-SIG] i18n - How to find out MacOS language from Python?

Peter Funk pf@artcom-gmbh.de
Fri, 4 Feb 2000 01:13:37 +0100 (MET)


How can I find out the particular foreign language (English, 
German, etc...) of a Mac from a Python program running on MacOS 8.x.
The builtin module 'locale' is unfortunately not included in my
latest version of Mac-Python (1.5.2c1).  So I'm looking for
a way to mimic the effect of
       >>> import locale
       >>> locale.setlocale(locale.LC_CTYPE)
       de_DE

Regards from Germany, Peter
P.S: This might belong into the newly created i18n-sig, but I ask here
     because of the knowlegdable audience here! <wink> ;-)
-- 
Peter Funk, Oldenburger Str.86, 27777 Ganderkesee, Tel: 04222 9502 70, Fax: -60