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. Translation is not updated by qt5_create_translation
Forum Updated to NodeBB v4.3 + New Features

Translation is not updated by qt5_create_translation

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 200 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.
  • l3u_L Offline
    l3u_L Offline
    l3u_
    wrote on last edited by l3u_
    #1

    Hi all,

    I just noticed one thing about a (still Qt 5) project: My translations are created initially, but they are not updated when I cange something in my TS file.

    In my CMakeLists.txt I have:

    find_package(Qt5LinguistTools)
    

    and later on

    if(Qt5LinguistTools_FOUND)
        set(TS_FILES ${CMAKE_SOURCE_DIR}/res/muckturnier_de.ts)
        set_source_files_properties(${TS_FILES} PROPERTIES
                                    OUTPUT_LOCATION ${CMAKE_BINARY_DIR}/share/muckturnier)
        qt5_create_translation(QM_FILES ${muckturnier_SOURCES} ${TS_FILES}
                               OPTIONS -pluralonly -locations none)
        add_custom_target(Localization ALL DEPENDS ${QM_FILES})
    endif()
    

    As said, the translation is updated if I start with an empty build directory – but when I change something in the sources and rebuild, nothing happens concerning the translation. After wiping the build directory and building from zero again, the changes are incorporated.

    I'm not really a CMake pro … obviously, I'm missing something here.

    Thanks in advance for all help!

    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