[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] pylupdate4 doesn't work .ui files
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2006-07-05 17:08:41
Message-ID: 20060705170841.GC19502 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

On 05.07.06 17:54:24, Phil Thompson wrote:
> On Friday 30 June 2006 12:58 pm, Andreas Pakulat wrote:
> > On 30.06.06 13:52:58, Andreas Pakulat wrote:
> > > On 27.06.06 15:42:25, Andreas Pakulat wrote:
> > > > Hi,
> > > >
> > > > a pylupdate4 ui/somewidget.ui -ts de.ts doesn't produce any output into
> > > > the .ts file.
> > >
> > > I created a patch to make this work, it is attached.
> > >
> > > Notes to make:
> > >
> > > The code is copied from lupdate of Qt/X11 open source edition but should
> > > work on the other versions too. It uses a SAX2 handler that extracts the
> > > strings.
> > >
> > > I needed to remove the support for inlined functions in the .ui-file,
> > > but I think that't not supported by pyuic4 anyway.
> > >
> > > I also hardcoded the Ui_-prefix that will be generated by pyuic4 so the
> > > context is correct (else it would use the classname only as context).
> > >
> > > Hope this makes it into the next PyQt4 along with the fix for pyuic4 to
> > > generate proper self.tr functions.
> >
> > Forgot to actually attach the patch.
> 
> Applied - except for the Ui_ prefix for the moment.

Yeah, I didn't think about people that would wan't to share translations
between Python and C++, probably because I don't really see much sense
in writing Qt4 apps in C++ ;-)

Andreas

-- 
Don't go surfing in South Dakota for a while.

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic