mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cmake: add Qt translation files
Not doing anything with them, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
499aeaf645
commit
d9a6acf4be
1 changed files with 19 additions and 0 deletions
|
@ -373,6 +373,21 @@ set(TRANSLATION_SRC
|
|||
translations/subsurface_zh_TW.ts
|
||||
)
|
||||
|
||||
set(QTTRANSLATIONS_BASE
|
||||
qt_da.qm
|
||||
qt_de.qm
|
||||
qt_es.qm
|
||||
qt_fr.qm
|
||||
qt_he.qm
|
||||
qt_hu.qm
|
||||
qt_pl.qm
|
||||
qt_pt.qm
|
||||
qt_ru.qm
|
||||
qt_sk.qm
|
||||
qt_sv.qm
|
||||
qt_zh_TW.qm
|
||||
)
|
||||
|
||||
# disabled translations as they are below 50%:
|
||||
# translations/subsurface_el_GR.ts \
|
||||
# translations/subsurface_he.ts \
|
||||
|
@ -398,6 +413,10 @@ foreach(TRANSLATION ${TRANSLATION_SRC})
|
|||
set(TRANSLATIONS ${TRANSLATIONS} ${CMAKE_BINARY_DIR}/${TRANSLATION_QM})
|
||||
endforeach()
|
||||
|
||||
foreach(QTTRANSLATION ${QTTRANSLATIONS_BASE})
|
||||
set(QTTRANSLATIONS ${QTTRANSLATIONS} ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
|
||||
endforeach()
|
||||
|
||||
# now for each platform the install instructions
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
|
|
Loading…
Reference in a new issue