From 6087c246c4c2ff1c7bdfb80bfabda39df845405c Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 23 Nov 2015 12:42:05 -0200 Subject: [PATCH] Read the translations from the translations file instead of hardcoding everything on the main cmake Signed-off-by: Tomaz Canabrava --- CMakeLists.txt | 15 +-------------- subsurface_enabled_translations | 12 ++++++++++++ 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 subsurface_enabled_translations diff --git a/CMakeLists.txt b/CMakeLists.txt index 904bab29a..1388d3686 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -302,20 +302,7 @@ set(DOCFILES ${CMAKE_BINARY_DIR}/Documentation/user-manual_ru.html ) -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 -) +FILE(READ "subsurface_enabled_translations" QTTRANSLATIONS_BASE) if(NOT DEFINED QT_TRANSLATION_DIR OR QT_TRANSLATION_DIR STREQUAL "") set(QT_TRANSLATION_DIR ${Qt5Core_DIR}/../../../translations) diff --git a/subsurface_enabled_translations b/subsurface_enabled_translations new file mode 100644 index 000000000..0a04d023d --- /dev/null +++ b/subsurface_enabled_translations @@ -0,0 +1,12 @@ +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 \ No newline at end of file