update translation tooling to work with Qt6
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
62cc7ad69b
commit
4a156d63cd
@ -33,7 +33,7 @@ chmod 000 mobile-widgets/3rdparty
|
||||
rm translations/subsurface_source.ts
|
||||
|
||||
# enable creating the translation strings
|
||||
sed -i.bak 's/# qt5_create_translation/ qt5_create_translation/ ; s/# add_custom_target(translations_update/ add_custom_target(translations_update/' translations/CMakeLists.txt
|
||||
sed -i.bak 's/#!#//' translations/CMakeLists.txt
|
||||
|
||||
popd
|
||||
|
||||
|
||||
@ -67,6 +67,11 @@ add_custom_target (translations ALL DEPENDS ${TRANSLATIONS})
|
||||
#
|
||||
# DO NOT DO THIS MANUALLY -- USE THE SCRIPT IN ORDER TO FIX NUMERUSFORM
|
||||
# =====================================================================
|
||||
# qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${TRANSLATION_FILES})
|
||||
# qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${US_EN_PLURALS} OPTIONS -pluralonly)
|
||||
# add_custom_target(translations_update DEPENDS ${TRANSLATION_MESSAGES})
|
||||
#!# if(NOT USINGQT6)
|
||||
#!# qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${TRANSLATION_FILES})
|
||||
#!# qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${US_EN_PLURALS} OPTIONS -pluralonly)
|
||||
#!# else()
|
||||
#!# qt6_add_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${TRANSLATION_FILES})
|
||||
#!# qt6_add_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${US_EN_PLURALS} OPTIONS -pluralonly)
|
||||
#!# endif()
|
||||
#!# add_custom_target(translations_update DEPENDS ${TRANSLATION_MESSAGES})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user