CMake: Only run lupdate on strawberry_en_US.ts

This commit is contained in:
Jonas Kvinge 2024-10-20 00:50:41 +02:00
parent ba127c57d8
commit b6cbebcc8a
1 changed files with 1 additions and 1 deletions

View File

@ -1423,7 +1423,7 @@ endif()
if(HAVE_TRANSLATIONS)
file(GLOB_RECURSE ts_files src/translations/*.ts)
set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/data")
qt_add_lupdate(strawberry TS_FILES ${ts_files} OPTIONS -no-ui-lines -locations none -no-obsolete)
qt_add_lupdate(strawberry TS_FILES src/translations/strawberry_en_US.ts OPTIONS -no-ui-lines -locations none -no-obsolete)
qt_add_lrelease(strawberry TS_FILES ${ts_files} QM_FILES_OUTPUT_VARIABLE INSTALL_TRANSLATIONS_FILES)
if(NOT INSTALL_TRANSLATIONS)
qt_add_resources(strawberry "translations" PREFIX "/i18n" BASE "${CMAKE_CURRENT_BINARY_DIR}/data" FILES "${INSTALL_TRANSLATIONS_FILES}")