2015-09-04 16:43:55 +00:00
|
|
|
# without this a "make clean" would delete the .ts files
|
|
|
|
set_directory_properties(PROPERTIES CLEAN_NO_CUSTOM 1)
|
|
|
|
|
|
|
|
# active translations - these will be built
|
|
|
|
#
|
|
|
|
set(TRANSLATION_FILES
|
2015-04-09 18:50:06 +00:00
|
|
|
subsurface_source.ts
|
|
|
|
subsurface_bg_BG.ts
|
2017-02-20 11:29:45 +00:00
|
|
|
subsurface_ca.ts
|
2015-04-09 18:50:06 +00:00
|
|
|
subsurface_cs.ts
|
|
|
|
subsurface_da_DK.ts
|
|
|
|
subsurface_de_CH.ts
|
|
|
|
subsurface_de_DE.ts
|
2017-02-19 19:56:47 +00:00
|
|
|
subsurface_el_GR.ts
|
2015-04-09 18:50:06 +00:00
|
|
|
subsurface_en_GB.ts
|
|
|
|
subsurface_es_ES.ts
|
|
|
|
subsurface_et_EE.ts
|
|
|
|
subsurface_fi_FI.ts
|
|
|
|
subsurface_fr_FR.ts
|
2015-10-13 15:22:54 +00:00
|
|
|
subsurface_he.ts
|
2020-11-20 01:41:42 +00:00
|
|
|
subsurface_hr_HR.ts
|
|
|
|
subsurface_it_IT.ts
|
2024-02-19 19:06:38 +00:00
|
|
|
subsurface_ko_KR.ts
|
2015-04-09 18:50:06 +00:00
|
|
|
subsurface_nb_NO.ts
|
|
|
|
subsurface_nl_NL.ts
|
|
|
|
subsurface_pl_PL.ts
|
|
|
|
subsurface_pt_BR.ts
|
|
|
|
subsurface_pt_PT.ts
|
2015-10-13 15:22:54 +00:00
|
|
|
subsurface_ro_RO.ts
|
2015-04-09 18:50:06 +00:00
|
|
|
subsurface_ru_RU.ts
|
|
|
|
subsurface_sk_SK.ts
|
|
|
|
subsurface_sv_SE.ts
|
|
|
|
subsurface_zh_TW.ts
|
|
|
|
)
|
|
|
|
|
2020-03-21 18:39:27 +00:00
|
|
|
set(US_EN_PLURALS subsurface_en_US.ts)
|
|
|
|
|
2017-02-19 19:56:47 +00:00
|
|
|
# disabled translations as they are below 40%:
|
2015-10-13 15:22:54 +00:00
|
|
|
# subsurface_hu.ts
|
2020-11-20 01:41:42 +00:00
|
|
|
# subsurface_lv_LV.ts
|
|
|
|
# subsurface_tr.ts
|
|
|
|
|
|
|
|
# new translations that didn't make it far enough:
|
|
|
|
# subsurface_af.ts
|
|
|
|
# subsurface_ar.ts
|
|
|
|
# subsurface_hi_IN.ts
|
|
|
|
# subsurface_hu.ts
|
|
|
|
# subsurface_id.ts
|
|
|
|
# subsurface_ja_JP.ts
|
|
|
|
# subsurface_sl.ts
|
|
|
|
# subsurface_sw_KE.ts
|
|
|
|
# subsurface_te.ts
|
|
|
|
# subsurface_th.ts
|
|
|
|
# subsurface_vi.ts
|
|
|
|
# subsurface_zh_CN.ts
|
|
|
|
|
2022-02-09 23:02:30 +00:00
|
|
|
if(NOT USINGQT6)
|
|
|
|
qt5_add_translation(TRANSLATIONS ${TRANSLATION_FILES} ${US_EN_PLURALS})
|
|
|
|
else()
|
|
|
|
qt_add_translation(TRANSLATIONS ${TRANSLATION_FILES} ${US_EN_PLURALS})
|
|
|
|
endif()
|
2015-04-09 18:50:06 +00:00
|
|
|
|
2015-09-22 16:32:38 +00:00
|
|
|
set(TRANSLATIONS ${TRANSLATIONS} PARENT_SCOPE)
|
2015-09-04 16:43:55 +00:00
|
|
|
add_custom_target (translations ALL DEPENDS ${TRANSLATIONS})
|
2015-09-04 17:20:19 +00:00
|
|
|
|
|
|
|
# enable the following two lines to recreate the .ts files
|
2017-02-12 19:30:31 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# DO NOT DO THIS MANUALLY -- USE THE SCRIPT IN ORDER TO FIX NUMERUSFORM
|
|
|
|
# =====================================================================
|
2015-09-04 17:20:19 +00:00
|
|
|
# qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${TRANSLATION_FILES})
|
2020-03-21 18:39:27 +00:00
|
|
|
# qt5_create_translation(TRANSLATION_MESSAGES ${CMAKE_SOURCE_DIR} ${US_EN_PLURALS} OPTIONS -pluralonly)
|
2015-09-04 17:20:19 +00:00
|
|
|
# add_custom_target(translations_update DEPENDS ${TRANSLATION_MESSAGES})
|