incompatibility between pylupdate5 and pylupdate6

Marko Luther marko.luther at gmx.net
Mon Oct 4 12:19:30 BST 2021


Dear Phil,

> On 4. Oct 2021, at 13:00, Phil Thompson <phil at riverbankcomputing.com> wrote:
> 
> On 03/10/2021 16:17, Marko Luther wrote:
>> Hi,
>> with pylupdate5 a statement like
>> QApplication.translate("Context", 'Text', None)
>> generated an entry in the indicated translation files. Not with
>> pylupdate6. However,
>> QApplication.translate("Context", 'Text')
>> does in both cases.
>> According to the documentation of QApplication (for Qt5 as for Qt6)
>> https://doc.qt.io/qt-6/qcoreapplication.html#translate
>> the third (optional) argument is by default a nullptr. Isn't Null
>> translated to a nullptr anyhow?
> 
> Should be fixed in the next snapshot.

thanks for your quick reaction and sorry that I did not report this before the PyQt6.2 release.
> 
>> Also pylupdate6 does not support .pro project files.
>> Is there a reason for this?
> 
> I didn't want to implement a .pro file parser.

Fine for me,
M

> 
> Phil



More information about the PyQt mailing list