Discrepancy between pylupdate and Qt Linguist

Phil Thompson phil at riverbankcomputing.com
Thu Jul 10 17:19:11 BST 2025


On 07/07/2025 09:39, Detlev Offenbach wrote:
> Hi Phil,
> 
> I just discovered a slight discrepancy between pylupdate and Qt
> Linguist. pylupdate generates the .ts files with an indentation of 2
> spaces while Qt Linguist uses 4 spaces. This is a bit annoying when it
> comes to version control because it causes the two to be completely
> (almost) different and it is not possible to see the differences
> without first regenerating the .ts file with pylupdate.
> 
> Please synchronize the pylupdate behavior to Qt Linguist or introduce
> a --indent option.
> 
> Regards
> Detlev

Should be fixed in the next snapshot. I'm currently messing with 
snapshots so you might not see it for a day or two.

Phil


More information about the PyQt mailing list