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


Groups > comp.lang.python > #11269

Re: problem with GTK language

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <gandalf@shopzeus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.039
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'startup': 0.04; 'locale': 0.09; 'subject:language': 0.09; "'')": 0.16; '.py': 0.16; 'exe': 0.16; 'wrote:': 0.16; 'language': 0.17; 'english.': 0.18; 'subject:problem': 0.19; 'header:In-Reply-To:1': 0.22; 'wrong?': 0.23; 'skip:l 30': 0.24; 'windows': 0.26; 'problem': 0.28; 'import': 0.28; 'compile': 0.29; 'use?': 0.30; 'shows': 0.32; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.34; 'file': 0.36; 'doing': 0.36; 'run': 0.37; 'but': 0.37; 'hello,': 0.38; 'subject:: ': 0.39; 'received:192': 0.39; 'subject:with': 0.39; 'define': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'your': 0.61; 'choose': 0.61; 'strange': 0.68; 'labels': 0.84; 'locals': 0.84; 'luck.': 0.84
Date Fri, 12 Aug 2011 13:14:04 +0200
From Laszlo Nagy <gandalf@shopzeus.com>
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11
MIME-Version 1.0
To python-list@python.org
Subject Re: problem with GTK language
References <CABFuWSy=HXFMYpag3cQ514NtPPcatMJujZ4vwi2xOdu-DATj=g@mail.gmail.com>
In-Reply-To <CABFuWSy=HXFMYpag3cQ514NtPPcatMJujZ4vwi2xOdu-DATj=g@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2218.1313147655.1164.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1313147655 news.xs4all.nl 23959 [2001:888:2000:d::a6]:54258
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:11269

Show key headers only | 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