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

pyside2-lupdate generated a blank .ts file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2
    • PySide
    • None
    • Python 3.6
      Windows 10 20H2
    • Windows

    Description

      Scenario:

      1. Use QT-Designer to create "mainWindowGUI.ui"
      2. Translate it to "mainWindow.py"
      3. Write "translation.pro"
      4. Use "pyside2-lupdate.exe" to generate "translation.ts"
      //translation.pro
      SOURCES = mainWindow.py
      TRANSLATIONS = translation.ts
      
      D:\>C:\Users\User\AppData\Local\Programs\Python\Python36\Lib\site-packages\PySide2\pyside2-lupdate.exe -verbose translation.pro
      Updating 'translation.ts'...
          Found 0 source texts (0 new and 0 already existing)
      

       

      I used "lupdate.exe" then got the same result.

      I've tried to replace "QCoreApplication.translate" with "tr" but not working.

       

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              freda Freda Cheng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes