> Well, it depends on how you're constructing your interface. If you're
> creating all the widgets in Python code, you could move all your
> foo.text = "Bar"; statements to one method that updates the text for all
> widgets, and call that both from the constructor and from the
> language-switching
On 29/07/11 11:18, Peter Irbizon wrote:
> Hello Thomas,
>
> > The usual way of using gettext is to use the system locale to determine
> > the right language. Of course, you can have different translations and
> > install() them (I expect), but you'll have to re-load all the strings
> > displayed
Hello Thomas,
> The usual way of using gettext is to use the system locale to determine
> the right language. Of course, you can have different translations and
> install() them (I expect), but you'll have to re-load all the strings
> displayed in your application when you switch language, which m
I used gettext in xmm2tray. You can have a look at the code as an example:
http://code.jollybox.de/hg/xmms2tray/file/04443c59a7a1/src/xmms2tray/__init__.py
On 2011-07-28 12:12, Peter Irbizon wrote:
I tried this:
# -*- coding: utf-8 -*-
import gettext
gettext.bindtextdomain('multilanguage', 'E:\f
On 2011.07.28 05:12 AM, Peter Irbizon wrote:
> P.S. sorry for double posting but when I post my message on googlegroups I
> can't see it in googlegroups (don't know why)
Last time I looked at this newsgroup (which was not that long ago) on
Google Groups, it was 2 days behind.
--
CPython 3.2.1 | W
Hello,
thank you for reply.
I tried this:
# -*- coding: utf-8 -*-
import gettext
gettext.bindtextdomain('multilanguage',
'E:\folder')
gettext.textdomain('multilanguage')
_ = gettext.gettext
# ...
lang1 = gettext.translation('multilanguage', languages=['sk'])
lang1.install()
print _('This is a tran
On Thu, Jul 28, 2011 at 2:11 AM, Peter Irbizon wrote:
> Hello guys,
>
> I would like to translate all strings in my application for several
> languages (eng, es, de, etc) and user should be able to switch app
> from one language to another. I am still newbie with python so is
> there any "step-by-
Hello guys,
I would like to translate all strings in my application for several
languages (eng, es, de, etc) and user should be able to switch app
from one language to another. I am still newbie with python so is
there any "step-by-step" tutorial how to to this? thanks for help
--
http://mail.pyt
Hello guys,
I would like to translate all strings in my application for several
languages (eng, es, de, etc) and user should be able to switch app
from one language to another. I am still newbie with python so is
there any "step-by-step" tutorial how to to this? thanks for help
--
http://mail.pyt