CMake: Only run lupdate on strawberry_en_US.ts
This commit is contained in:
parent
ba127c57d8
commit
b6cbebcc8a
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue