Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-13397

Translation doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • QDS 4.8.1
    • QDS 4.5.1
    • All Other Issues
    • None
    • QDS Berlin - 2024 Week 35/36, QDS Berlin - 2024 Week 37/38, QDS Berlin - 2024 Week 39/40, QDS Berlin - 2024 Week 41/42, QDS Berlin - 2024 Week 43/44, QDS Berlin - 2024 Week 45/46, QDS Berlin - 2024 Week 47/48, QDS Berlin - 2024 Week 49/50, QDS Berlin - 2024/25 51-2, QDS Berlin - 2025 Week 3/4, QDS Berlin - 2025 Week 5/6

      This workflow is not working with QDS.

      1. Write qsTr() or qsTrId() in .qml files
      2. Run lupdate on .qml files to generate .ts files with "qml_" prefix.
      3. Run linguist to fill up the translated texts in .ts files
      4. Put .ts in the i18n directory at the directory containing the main qml file
      5. Run lrelease to generate .qm files from .ts files
      6. Add these in .qmlproject
            multilanguageSupport: true
            supportedLanguages: ["en_US", "ja_JP"]
            primaryLanguage: "ja_JP"
      7. Add Component.onCompleted: Qt.uiLanguage = "ja_JP"
      8. Run the app and expect to see the Japanese-translated texts on the screen.

      Currently this isn't working with QDS 4.5.1. I attached the project.

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

            thohartm Thomas Hartmann
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes