Discrepancy between pylupdate and Qt Linguist

Phil Thompson phil at riverbankcomputing.com
Sat Jul 12 10:30:43 BST 2025


On 12/07/2025 10:22, Detlev Offenbach wrote:
> Hi Phil,
> 
> I just tried the new pylupdate (actually just translation_file.py) and
> must report, that the file generated by pylupdate and Qt linguist are
> still different. pylupdate indents all context elements by 4 spaces
> whereas Qt linguist does not indent them at all.
> 
> Would it be possible to align the bahavior of pylupdate with Qt 
> linguist?

So Qt Linguist is inconsistent in its indentation?

It would require indenting the file "manually". At the moment it uses...

https://docs.python.org/3.13/library/xml.etree.elementtree.html#xml.etree.ElementTree.indent

Phil


More information about the PyQt mailing list