Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. How to generate translation file

How to generate translation file

Scheduled Pinned Locked Moved Solved QtWebEngine
5 Posts 3 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MozzieM Offline
    MozzieM Offline
    Mozzie
    wrote on last edited by
    #1

    hi,
    yesterday, I was trying to make a translation file for QWebEnge module,
    I download the source file and add the line below to src.pro file

    TRANSLATIONS += qtwebenginewidgets_zh.ts
    

    and I load the src.pro by qtcreator, and start lupdate process,
    but after a fully day, the lupdate process is still runnning,
    and from qtcreator I see a lot of same file
    捕获.PNG

    so was ther something wrong,.
    please help me, thanks a lot

    Pablo J. RoginaP 1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Ignore the messages - it's coming from lupdate when it can't parse some code. The question is - is the ts file successfully created?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      MozzieM 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Ignore the messages - it's coming from lupdate when it can't parse some code. The question is - is the ts file successfully created?

        MozzieM Offline
        MozzieM Offline
        Mozzie
        wrote on last edited by Mozzie
        #3

        @Christian-Ehrlicher
        Thanks for your reply.
        the ts file did not create, after I cleared the message, another same message came out, and the lupdate has been running for a whole day, I don't know if this is normal.

        1 Reply Last reply
        0
        • MozzieM Mozzie

          hi,
          yesterday, I was trying to make a translation file for QWebEnge module,
          I download the source file and add the line below to src.pro file

          TRANSLATIONS += qtwebenginewidgets_zh.ts
          

          and I load the src.pro by qtcreator, and start lupdate process,
          but after a fully day, the lupdate process is still runnning,
          and from qtcreator I see a lot of same file
          捕获.PNG

          so was ther something wrong,.
          please help me, thanks a lot

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @Mozzie said in How to generate translation file:

          I download the source file

          Could you point to what you downloaded?
          The source code of QWebEngine?

          Are you adding/modifying/removing strings from the module?

          If not, and if you only want to translate existing strings from it, I guess you may want to work with the translations package.

          Download it, copy any of the existing files, i.e. qtwebengine_de.ts (German translation, but it has all the strings to be translated) into qtwebengine_zh.ts and translate it to Chinese using Linguist.

          When you're done, use lrelease tool to have your qtwebengine_zh.qm file created which you can install into your application.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          MozzieM 1 Reply Last reply
          0
          • Pablo J. RoginaP Pablo J. Rogina

            @Mozzie said in How to generate translation file:

            I download the source file

            Could you point to what you downloaded?
            The source code of QWebEngine?

            Are you adding/modifying/removing strings from the module?

            If not, and if you only want to translate existing strings from it, I guess you may want to work with the translations package.

            Download it, copy any of the existing files, i.e. qtwebengine_de.ts (German translation, but it has all the strings to be translated) into qtwebengine_zh.ts and translate it to Chinese using Linguist.

            When you're done, use lrelease tool to have your qtwebengine_zh.qm file created which you can install into your application.

            MozzieM Offline
            MozzieM Offline
            Mozzie
            wrote on last edited by
            #5

            @Pablo-J-Rogina
            Thank you very much.
            Yes, I just download the source code of QWebEngine and I did not change anything.
            And I will try your way, I think it would work.
            Thanks again, this is very helpful.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved