Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. lupdate is not producing .ts files for me
Forum Updated to NodeBB v4.3 + New Features

lupdate is not producing .ts files for me

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 3.5k Views
  • 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.
  • K Offline
    K Offline
    kitfox
    wrote on last edited by kitfox
    #1

    I'm diving into using the translation features for the first time and can't seem to generate the .ts files I need. When I run lupdate, I just get an error message that no .ts file has been specified, and no files are generated. The docs I've read don't say anything about specifying a .ts file. How do I get this to work?

    This is my command prompt:

    D:\dev\starling2\game\2019\GoldfinchQt>lupdate -verbose GoldfinchQt.pro
    Info: creating stash file D:\dev\starling2\game\2019\GoldfinchQt\.qmake.stash
    lupdate warning: no TS files specified. Only diagnostics will be produced for 'D:/dev/starling2/game/2019/GoldfinchQt/GoldfinchQt.pro'.
    
    J.HilkJ 1 Reply Last reply
    0
    • K kitfox

      I'm diving into using the translation features for the first time and can't seem to generate the .ts files I need. When I run lupdate, I just get an error message that no .ts file has been specified, and no files are generated. The docs I've read don't say anything about specifying a .ts file. How do I get this to work?

      This is my command prompt:

      D:\dev\starling2\game\2019\GoldfinchQt>lupdate -verbose GoldfinchQt.pro
      Info: creating stash file D:\dev\starling2\game\2019\GoldfinchQt\.qmake.stash
      lupdate warning: no TS files specified. Only diagnostics will be produced for 'D:/dev/starling2/game/2019/GoldfinchQt/GoldfinchQt.pro'.
      
      J.HilkJ Online
      J.HilkJ Online
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      hi @kitfox

      there are two ways I know of. The, in my opinion, best way is to specify your translation files inside your *.pro file

      TRANSLATIONS = myApp_de.ts \
                     ....
                     myApp_en.ts
      

      if you don't want to do it this way, than you'll have to specify a file.ts name as argument to the lUpdate program call.
      I know this works, but I'm unsure where exactly to place the file-argument. So I can't give you an example for that.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      4

      • Login

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