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