mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
30999a6898
commit
6087c246c4
2 changed files with 13 additions and 14 deletions
|
@ -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)
|
||||
|
|
12
subsurface_enabled_translations
Normal file
12
subsurface_enabled_translations
Normal 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
|
Loading…
Reference in a new issue