[PyQt] [patch] Qt Linguist and pylupdate4: project layout and paths in my_software_*.ts
Jérôme
jerome at jolimont.fr
Thu Mar 12 09:53:12 GMT 2015
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.
--
Jérôme
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylupdate4.patch
Type: text/x-diff
Size: 946 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150312/34d8d50e/attachment.patch>
More information about the PyQt
mailing list