summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt15
-rw-r--r--subsurface_enabled_translations12
2 files changed, 13 insertions, 14 deletions
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