One possible solution that i did for my program:

use a config file: programname.cfg

inside thisi lets say a line defines the language: $language = eng

and create a language file:

connect:Connect 
open:Open
...

connect: is the global word that you will use for all your languaage
files. At the start of your program, check the config file, define
language and then open the related language file. Then read the
content and set the labels.

Lets say you have a label Connect

You may read all the content of the language file and assign it to an
array and then you may assign the correct language word: somelabel =
array['connect']


On 8/18/05, Luigi Pantano <[EMAIL PROTECTED]> wrote:
> how I can create a program in more languages (English, German,
> Italian...) using the pygtk?
> --
> Luigi Pantano
> ---------------------------------------------------------------
> IPUG - Italian Python User Group
> www.italianpug.org
> https://py-tips-tricks.python-hosting.com/
> ---------------------------------------------------------------
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to