[PyQt] Patch for pylupdate4 / sourcelanguage attribute

Giuseppe Corbelli giuseppe.corbelli at copanitalia.com
Thu Mar 3 15:13:26 GMT 2011


Current (QT 4.7.1) .ts file header keeps track of target and source languages
and looks like this:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en_US" sourcelanguage="it_IT">

Meanwhile pylupdate4 from pyqt 4.8.3 does not keep track of the sourcelanguage
attribute that was introduced in QT 4.5.

Attached patch loads and saves the sourcelanguage, plus it bumps the "version"
attribute to 2.0 (not sure if this is a good idea :-)
don't want to keep a nonstandard tree.
-- 
            Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666104  Fax: +390302659932
E-mail: giuseppe.corbelli at copanitalia.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylupdate.diff
Type: text/x-diff
Size: 3848 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110303/04637277/attachment.diff>


More information about the PyQt mailing list