Details
Description
When QObject.tr is applied to an r-string, pyside6-lupdate doesn't list it in the TS file.
That's an MWE:
from PySide6.QtCore import QObject class Spam(QObject): def spam(self) -> None: self.tr(r'\escaped from translation!')
The result of pyside6-lupdate ....py -ts ....ts is Found 0 source text(s), despite there is definitely one.
Attachments
Issue Links
- relates to
-
PYSIDE-2562 Lupdate doesn't recognize python u-strings
- Closed
For Gerrit Dashboard: PYSIDE-2380 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
489744,3 | lupdate/Python: Handle f/r strings | dev | qt/qttools | Status: MERGED | +2 | 0 |
489858,2 | lupdate: Factor out parsing of Python backslash escaping | dev | qt/qttools | Status: MERGED | +2 | 0 |
490026,2 | lupdate: Factor out parsing of Python backslash escaping | 6.6 | qt/qttools | Status: MERGED | +2 | 0 |
490027,2 | lupdate: Factor out parsing of Python backslash escaping | 6.5 | qt/qttools | Status: MERGED | +2 | 0 |
490472,2 | lupdate/Python: Handle f/r strings | 6.6 | qt/qttools | Status: MERGED | +2 | 0 |
490473,2 | lupdate/Python: Handle f/r strings | 6.5 | qt/qttools | Status: MERGED | +2 | 0 |