[PyKDE] pylupdate4 doesn't work .ui files

Andreas Pakulat apaku at gmx.de
Wed Jul 5 18:08:41 BST 2006


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.




More information about the PyQt mailing list