Discrepancy between pylupdate and Qt Linguist
Detlev Offenbach
detlev at die-offenbachs.de
Sat Jul 12 10:22:42 BST 2025
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?
Regards,
Detlev
Am 10.07.25 um 18:19 schrieb Phil Thompson:
> 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
--
Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250712/e475d4aa/attachment.htm>
More information about the PyQt
mailing list