<div dir="ltr"><div><div>o/<br><br></div>Just for the record, I solved the issue: if there are empty *.ts files lupdate will fail to populate them. <br><br></div>Regards<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, May 23, 2014 at 2:25 PM, Sergio Vera <span dir="ltr"><<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div><br clear="all"></div>Hello fellow CMakers<br><br></div>I'm following the CMake guide to Qt based internationalization of my app: <a href="http://www.cmake.org/Wiki/CMake:How_To_Build_Qt4_Software" target="_blank">http://www.cmake.org/Wiki/CMake:How_To_Build_Qt4_Software</a><br>
<br></div>However, After many attempts I cannot generate the proper files:<br></div>Here is an digest of my CMakeLists.txt<br><br><span style="font-family:courier new,monospace">FILE(GLOB INCLUDE_FILES *.h)<br>FILE(GLOB SOURCE_FILES *.txx *.cpp * cxx)<br>
FILE(GLOB UI_FILES *.ui)<br>#...<br>SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${INCLUDE_FILES} ${UI_FILES} ${SOURCE_FILES})<br>FILE (GLOB TRANSLATIONS_FILES *.ts)<br>QT4_CREATE_TRANSLATION(QM_FILES ${FILES_TO_TRANSLATE} ${TRANSLATIONS_FILES})</span><br>
<br></div>I have created two empty ts files in my source dir: CoreApp_es.ts and CoreApp_en.ts<br><br></div><div>When I compile the project, Qt's lupdate tries to populate the ts files with the literals from my files:<br>
</div><div><div><br><span style="font-family:courier new,monospace">Generating /home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/CoreApp_es.ts<br>Generating /home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/CoreApp_en.ts<br>
Scanning directory '/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Reporting'...<br>Scanning directory '/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/images'...<br></span><br>
<br></div><div>although it seems to analyze as well my boost header files.<br></div><div><br><span style="font-family:courier new,monospace">/usr/include/boost/thread/future.hpp:3385: Unbalanced opening parenthesis in C++ code (or abuse of the C++ preprocessor)<br>
/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Scene.cxx:41: Discarding unconsumed meta data</span><br><br><br></div><div>However, at the end, the ts files are still empty and 0 size so when lrelase attempts to compile the translations it complains: <br>
<span style="font-family:courier new,monospace"><br>/usr/include/boost/thread/future.hpp:3385: Unbalanced opening parenthesis in C++ code (or abuse of the C++ preprocessor)<br>/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Scene.cxx:41: Discarding unconsumed meta data</span><br>
</div><div><br><br></div><div>I'm out of ideas ny now. Any help would be kidnly appreciated<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><div><div>
<div><div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br>
T. <a href="tel:%28%2B34%29%20932%20380%20592" value="+34932380592" target="_blank">(+34) 932 380 592</a><br> <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a>
</div></div></div></div></div></font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a>
</div>