Read the translations from the translations file

instead of hardcoding everything on the main cmake

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
Tomaz Canabrava 2015-11-23 12:42:05 -02:00 committed by Dirk Hohndel
parent 30999a6898
commit 6087c246c4
2 changed files with 13 additions and 14 deletions

View file

@ -302,20 +302,7 @@ set(DOCFILES
${CMAKE_BINARY_DIR}/Documentation/user-manual_ru.html ${CMAKE_BINARY_DIR}/Documentation/user-manual_ru.html
) )
set(QTTRANSLATIONS_BASE FILE(READ "subsurface_enabled_translations" 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
)
if(NOT DEFINED QT_TRANSLATION_DIR OR QT_TRANSLATION_DIR STREQUAL "") if(NOT DEFINED QT_TRANSLATION_DIR OR QT_TRANSLATION_DIR STREQUAL "")
set(QT_TRANSLATION_DIR ${Qt5Core_DIR}/../../../translations) set(QT_TRANSLATION_DIR ${Qt5Core_DIR}/../../../translations)

View file

@ -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