python locale for gtk does not work on windows
I have python 2.7 and pygtk. I am trying to set locale language for gtk in my application but no luck. My windows is in slovak language and I would like to have button labels in my app in english. How to solve it? I tried this but no luck (all labels are still in slovak): import os os.environ['LANGUAGE'] = 'en_US' #tried en_UK as well os.environ['LANG'] = 'en_US' os.putenv('en_US', 'LANG') import locale locale.setlocale(locale.LC_ALL, 'English_United Kingdom.1252' ) but when I make cmd file this works: set LANG=en_US something.exe what am I doing wrong? This is becoming a common question these