Spyder language settings?

5,071 views
Skip to first unread message

Mat2PI

unread,
Dec 22, 2013, 9:05:59 AM12/22/13
to winp...@googlegroups.com
Hey everyone!

I'm new to python, new to WinPython, and new to Spyder. So much more to learn... :-)
I hope I'll have a quick and easy start... Recommendations for first-time tutorials will be more than welcome.

In the mean time, however, I have only a very simple question - where are the language settings in Spyder editor?
Not the programming language, but rather the actual human language. 
My windows isn't in English, and Spyder installed itself in the default OS language, and I can't figure out how to change it back to English...

thanks a lot!

stonebig

unread,
Dec 22, 2013, 1:18:11 PM12/22/13
to winp...@googlegroups.com
hello,

The language is choosen in \WinPython***\python-***\Lib\site-packages\spyderlib\baseconfig.py
==> You may try this :
- backup the baseconfig.py file (in case something goes wrong)
- open it and change line 190 (in my version) :
from 
        lang = locale.getdefaultlocale()[0]
to
        lang = 'en_EN' #locale.getdefaultlocale()[0]

- save the modifed baseconfig.py and relaunch winpython.
(on my pc the menu of spyder switch then  from 'fr_FR' to 'en-EN' as expected)

Mat2PI

unread,
Dec 23, 2013, 4:42:21 AM12/23/13
to winp...@googlegroups.com
It worked.
Thanks a lot!

Pierre Raybaut

unread,
Dec 24, 2013, 5:25:14 AM12/24/13
to winp...@googlegroups.com
The cleanest way to do this is to create an environment variable named "LANG" and set it to "en":
LANG=en
 
-Pierre
 

Date: Sun, 22 Dec 2013 06:05:59 -0800
From: igi...@gmail.com
To: winp...@googlegroups.com
Subject: Spyder language settings?
--
You received this message because you are subscribed to the Google Groups "WinPython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to winpython+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Chris Peacock

unread,
Oct 2, 2014, 4:16:12 AM10/2/14
to winp...@googlegroups.com
Thanks! This worked for me too :)
Reply all
Reply to author
Forward
0 new messages