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 command and cmake
Forum Updated to NodeBB v4.3 + New Features

Lupdate command and cmake

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 7.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.
  • K Offline
    K Offline
    kitten
    wrote on last edited by
    #1

    hi
    i use qtcreator on ubuntu 11.10
    i have a project that uses cmake
    i open cmakelists.txt file with qtcreator and it works fine
    but now i want to use lupdate and lrelease on it
    but it does'nt get me any translation file to translated
    it get me this:
    found 0 source text(s)

    www.kitten.mihanblog.com

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      You should look at the documentation of lupdate / lrelease and how to use these from the command-line, then use ADD_CUSTOM_COMMAND in your CMakeLists.txt file to actually perform the actions required to generate your translation files:

      @
      ADD_CUSTOM_COMMAND (
      OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/project.ts
      COMMAND lupdate -silent -I ./includes ./sources -ts ./project.ts ${CMAKE_CURRENT_BINARY_DIR}/project.ts
      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
      )
      @

      1 Reply Last reply
      0
      • B Offline
        B Offline
        banlinhtienphong
        wrote on last edited by
        #3

        but this command not perform! why?

        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