[PyQt] Possible bug in pyludate5
Detlev Offenbach
detlev at die-offenbachs.de
Sat Jul 12 11:24:34 BST 2014
On Saturday 12 July 2014, 11:08:15 Phil Thompson wrote:
> On 05/07/2014 12:18 pm, Detlev Offenbach wrote:
> > Hi,
> >
> > I have a few calls like these in my program.
> >
> > QCoreApplication.translate(
> >
> > "DownloadUtilities",
> >
> > "%n:{0:02} minutes remaining""", "",
> >
> > minutes).format(seconds)
> >
> > The observed issue is, that pyludate5 doesn't generate the numerous
> > form. Attached find a minumum example and the resultant output. The
> > _correct.ty file contains the correct format that should have been
> > created.
> >
> > If the compatibility overload of the translate function (the one
> > containg the encoding parameter), the generated .ts file is correct.
> > However, that is not wrapped (i.e. not cotained in
> > QCoreApplication.sip).
>
> Do you think it will be good enough to just detect the %n to decide that
> it is numerus?
Yes, because otherwise it doesn't make sense. However, I am just curious why it worked
correctly in the past and works fine for PyQt4 but fails for PyQt5.
Detlev--
*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140712/26e34f9a/attachment.html>
More information about the PyQt
mailing list