[PyQt] Possible bug in pyludate5

Phil Thompson phil at riverbankcomputing.com
Sat Jul 12 11:08:15 BST 2014

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?


More information about the PyQt mailing list