LXQtTranslateTs.cmake: Use/update template in remote repo

...if possible
This commit is contained in:
Palo Kisa 2016-05-16 14:49:24 +02:00
parent a9b89e6142
commit d173e0da06
1 changed files with 2 additions and 1 deletions

View File

@ -222,10 +222,11 @@ function(lxqt_translate_ts qmFiles)
#project/module can use it's own translations (not from external)
if (EXISTS "${TR_TRANSLATION_DIR}/${TR_REPO_SUBDIR}/")
file(GLOB tsFiles "${TR_TRANSLATION_DIR}/${TR_REPO_SUBDIR}/*_*.ts")
set(templateFile "${TR_TRANSLATION_DIR}/${TR_REPO_SUBDIR}/${TR_TEMPLATE}.ts")
else ()
file(GLOB tsFiles "${TR_TRANSLATION_DIR}/${TR_TEMPLATE}_*.ts")
set(templateFile "${TR_TRANSLATION_DIR}/${TR_TEMPLATE}.ts")
endif ()
set(templateFile "${TR_TRANSLATION_DIR}/${TR_TEMPLATE}.ts")
if(TR_USE_QT5)
# Qt5