Re: gettext switch language on the fly

2011-07-29 Thread Peter Irbizon
hello Chris, I am using pygtk. 2011/7/29 Chris Rebert > On Thu, Jul 28, 2011 at 6:20 PM, Peter Irbizon > wrote: > > hello, > > I am using gettext fo localization > > > Now I would like to switch all texts in my app when I click on item in > menu. > > Unfortunatelly this not switch texts immed

Re: gettext switch language on the fly

2011-07-28 Thread Chris Rebert
On Thu, Jul 28, 2011 at 6:20 PM, Peter Irbizon wrote: > hello, > I am using gettext fo localization > Now I would like to switch all texts in my app when I click on item in menu. > Unfortunatelly this not switch texts immediately. How can I do this? Which GUI toolkit are you using? Cheers, Chri

gettext switch language on the fly

2011-07-28 Thread Peter Irbizon
hello, I am using gettext fo localization local_path=os.path.join(module_path(), lang_folder) gettext.bindtextdomain(lang_name, local_path) gettext.textdomain(lang_name) # Get the language to use lang = gettext.translation(lang_name, local_path, languages=['s