bug report: pylupdate corrupts ampersand symbols

Efrem Braun efrem.braun at gmail.com
Thu Jan 27 18:07:23 GMT 2022


Thanks. It was also in PyQt6, so hopefully it will it be fixed there as
well?

On Thu, Jan 27, 2022 at 12:31 PM Phil Thompson <phil at riverbankcomputing.com>
wrote:

> On 27/01/2022 16:12, Efrem Braun wrote:
> > Sure.
> >
> > 1. Take form.ui (which I made in Qt Creator), which has a red label
> > (which
> > Qt Creator produces by using HTML formatting).
> > 2. Run `pyuic5 -x form.ui -o form.py` to create form.py.
> > 3. Run `pylupdate5 main.pro` to create ja_JP.ts.
> > 4. Open ja_JP.ts in Qt Linguist, and provide a translation of the
> > source
> > text "<html><head/><body><p><span style=" color:#ff0000;">Colored
> > Label</span></p></body></html>" to "<html><head/><body><p><span style="
> > color:#ff0000;">Translated Colored Label</span></p></body></html>".
> > Save
> > the ja_JP.ts file in Qt Linguist.
> > 5. Run `pylupdate5 main.pro` to update ja_JP.ts.
> > 6. Open ja_JP.ts and you will see the ampersand symbols.
> >
> > Efrem Braun
>
> Should be fixed in the next PyQt5 snapshot.
>
> Thanks,
> Phil

-- 
Efrem Braun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220127/1b272a73/attachment.htm>


More information about the PyQt mailing list