Add -locations absolute option to lupdate so our *.ts files can contain informations...
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Mon, 8 Sep 2014 15:29:46 +0000 (23:29 +0800)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Mon, 8 Sep 2014 15:29:46 +0000 (23:29 +0800)
CMakeLists.txt

index 3a704f0..d9cae93 100644 (file)
@@ -137,7 +137,7 @@ if(USE_QT5)
 
     QT5_WRAP_UI(UIS ${FORMS})
     if (UPDATE_TRANSLATIONS)
-        qt5_create_translation(QM_FILES ${SRCS} ${UIS} ${TS_FILES})
+        qt5_create_translation(QM_FILES ${SRCS} ${FORMS} ${UIS} ${TS_FILES} OPTIONS -locations absolute)
     else()
         QT5_ADD_TRANSLATION(QM_FILES ${TS_FILES})
     endif()
@@ -159,7 +159,7 @@ else()
     QT4_WRAP_CPP(MOCS ${MOCS})
     QT4_WRAP_UI(UIS ${FORMS})
     if (UPDATE_TRANSLATIONS)
-        qt4_create_translation(QM_FILES ${SRCS} ${UIS} ${TS_FILES})
+        qt4_create_translation(QM_FILES ${SRCS} ${FORMS} ${UIS} ${TS_FILES} OPTIONS -locations absolute)
     else()
         QT4_ADD_TRANSLATION(QM_FILES ${TS_FILES})
     endif()