Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11269

Re: problem with GTK language

Date 2011-08-12 13:14 +0200
From Laszlo Nagy <gandalf@shopzeus.com>
Subject Re: problem with GTK language
References <CABFuWSy=HXFMYpag3cQ514NtPPcatMJujZ4vwi2xOdu-DATj=g@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2218.1313147655.1164.python-list@python.org> (permalink)

Show all headers | View raw


On 2011-08-10 16:22, Peter Irbizon wrote:
> Hello,
> I have strange problem with gtk language in pygtk. When I run .py file 
> it shows all gtk labels in my default windows language (slovak). But 
> when I compile it with py2exe and run exe file all labels are in 
> english. Why this happens? How can I define on program startup which 
> language to use? I would like to choose between english and slovak. I 
> tryed to set locals in my application but no luck. What am I doing wrong?
Do you have this in your main program?


import  locale
locale.setlocale(locale.LC_ALL,  '')


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: problem with GTK language Laszlo Nagy <gandalf@shopzeus.com> - 2011-08-12 13:14 +0200

csiph-web