[PyKDE] pylupdate4 doesn't work .ui files

Phil Thompson phil at riverbankcomputing.co.uk
Wed Jul 5 17:54:24 BST 2006


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.

Thanks,
Phil




More information about the PyQt mailing list