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

Translation doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 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

    Description

      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.

      Attachments

        1. Translation-2.zip
          13 kB
          Mikio Hirai
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes