[pygtk] more languages
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 pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] more languages
Luigi Pantano wrote: how I can create a program in more languages (English, German, Italian...) using the pygtk? You can use the python gettext module Stéphane ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] more languages
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 pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] more languages
2005/8/18, Luigi Pantano [EMAIL PROTECTED]: how I can create a program in more languages (English, German, Italian...) using the pygtk? Hi Luigi, have a look also at PyGTK FAQ 22.2: http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq22.002.htp it might help ciao -- Gian Mario Tagliaretti PyGTK GUI programming http://www.parafernalia.org/pygtk/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/