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

Jérôme jerome at jolimont.fr
Tue Mar 17 16:46:00 GMT 2015


Please pardon me for reposting. I'm a bit surprised I didn't get any
feedback about this.

Was my question irrelevant ?

Is proposed patch useless ? If so, I must be doing things the wrong way.

Please tell me if I'm misusing this list in any way, or if I should ask
somewhere else.

Or if I should just be more patient...



Le 2015-03-12 10:53, Jérôme a écrit :
> 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.

More information about the PyQt mailing list