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. Cannot create .qm files from .ts (lrelease)

Cannot create .qm files from .ts (lrelease)

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 913 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.
  • X Offline
    X Offline
    XaviP
    wrote on last edited by XaviP
    #1

    When running Tools>External>Linguist>ReleaseTranslations:

    Starting external tool "Qt/6.2.4/gcc_64/bin/lrelease CMakeLists.txt"
    lrelease error: Parse error at CMakeLists.txt:1:1: Start tag expected.
    "Qt/6.2.4/gcc_64/bin/lrelease" finished
    

    In CMakeLists.txt:

    • line 1, column 1 nothing special.
    • Has tried with:
    qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
    

    and with:

    qt_add_translations(appname TS_FILES ${TS_FILES})
    

    with same results.

    Edit:
    in CMakeLists.txt:
    set(TS_FILES ts/appname_ca_ES.ts)
    set(CMAKE_SOURCE_DIR src)

    1 Reply Last reply
    0
    • X Offline
      X Offline
      XaviP
      wrote on last edited by
      #2

      Solved from terminal:

      Qt/6.2.4/gcc_64/bin/lupdate src/ -ts ts/appname_ca_ES.ts
      Qt/6.2.4/gcc_64/bin/lrelease ts/appname_ca_ES.ts
      
      1 Reply Last reply
      1

      • Login

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