Trouble with getdefaultlocale on Mac

  • Thread starter Pierre-Alain Dorange
  • Start date
P

Pierre-Alain Dorange

Hello,

To internationalize a small game, i'm trying to use
locale.getdefaultlocale() or locale.getlocale().

On my Mac at home, it return '(none,xxx)' difficult to determine the
user language...
At home : MacOS X 10.4.11 / Python 2.5.2 (user install, default was
2.3.2).

I try with the original system version (2.3.2) it was the same.
I also try to set defautl before (locale.setlocale(LC_ALL,''), do not
change anything.
(None, None)

The same test at my office, with MacOS X 10.5 / Python 2.5.x return the
right answer ;
('fr_FR','mac-roman')

My goal is to dertermine th user language define on the running system,
any helps ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top