[PyQt] [patch] Qt Linguist and pylupdate4: project layout and paths in my_software_*.ts

Phil Thompson phil at riverbankcomputing.com
Fri Apr 3 11:04:12 BST 2015


On 12/03/2015 9:53 am, Jérôme wrote:
> Le 2015-03-09 14:12, Jérôme a écrit :
> 
>> Considering Qt Linguist's behaviour, shouldn't pylupdate4 write paths 
>> in
>> the .ts file relative to the .ts file itself, rather than the .pro 
>> file
>> ?
> 
> Hi.
> 
> I've been digging a bit more:
> 
> http://stackoverflow.com/questions/28988238/qt-linguist-and-pylupdate4-which-base-for-relative-paths-in-ts-files
> 
> It looks like pylupdate tries to write paths relative to the .ts file
> but it expects paths in the .pro file to be absolute and fails if they
> are not. Is this correct ?
> 
> Attached is an humble patch that allowed me to have pylupdate work fine
> with relative paths in the .pro file. pylupdate translates those paths
> to make them relative to the .ts file when saving the .ts file.
> 
> Thanks for any feedback.

Hopefully fixed (with a different patch) in tonight's PyQt4 and PyQt5 
snapshots.

Thanks,
Phil


More information about the PyQt mailing list