LXQtTranslateTs.cmake: Use/update template in remote repo
authorPalo Kisa <palo.kisa@gmail.com>
Mon, 16 May 2016 12:49:24 +0000 (14:49 +0200)
committerPalo Kisa <palo.kisa@gmail.com>
Mon, 16 May 2016 12:49:24 +0000 (14:49 +0200)
...if possible

cmake/modules/LXQtTranslateTs.cmake

index 6b5e65b..a7b6533 100644 (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