Re: Query regarding translations



Le jeudi 23 avril 2009 à 00:22 -0600, Ray Wang a écrit :
> >>> On 4/23/2009 at  1:45 PM, in message
> <4620a8b10904222245j2533959bl2aba821a2d8e47bc mail gmail com>, Nisha Pandita
> <pandita nisha123 gmail com> wrote: 
> > Hello,
> > 
> > I was just working on the translations of a small application made using
> > glade interface and python...I am able to create the .pot files and
> > corresponding .po files  and .mo files ...but after executing the
> > application with a particular locale i am not getting the translations
> > done...
> > 
> > Command i have used to create the .pot file
> > 
> > xgettext -f POTFILES.in HelloWorldGTK.py --output=hello.pot
> > 
> > Command to create the .po files
> > 
> > msginit -l hi
> > 
> > Command for creating the .mo files
> > 
> > msgfmt --output=hello.mo hi.po
> Hey man, you have to copy the .mo file to your 
> /usr/share/locale/YOUR_LOCALE/LC_MESSAGES/HelloWorldGTK.mo
> then the program could find the translated message from that location.

This might not be sufficient. For a more complete procedure, see:
http://faq.pygtk.org/index.py?req=show&file=faq22.002.htp

Claude

> > 
> > Command for executing the application
> > 
> > LANGUAGE =hi python HelloWorldGTK.py
> > 
> > but still i am not getting the translated strings...
> > 
> > I am attaching my application to it
> > 
> > Please help me out
> > 
> > Thanks and Regards,
> > 
> > Nisha
> >



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]