Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2380

pyside6-lupdate ignores r-strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 6.6.0
    • 6.5.2
    • Tooling
    • None
    • 08fe8fc69 (dev), 38349b4fd (6.5), d4e767995 (6.6), 5577432ba (dev), 7fb700f45 (6.6), 898a81674 (6.5)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            stsav012 Anton Yablokov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes