AlGaN
3rd March 2011, 08:43
Hello,
I use Linguist & lupdate/lrelease cycle ever since to update tr() strings in my code for translating.
But with recent Qt 4.7.1 version this does not seem to work anymore? I have a big project with several subdirs, structured like this:
- MainDir
main.pro
- Module1
module1.pro
- Module2
module2.pro
[...]
- Main
main.pro
- resource
Program_de.ts
[...]
Program_de.qm
[...]
the Module subdirs being dynamic libraries (DLLs) and Main being the application
TEMPLATE=app and the resource dir containing all program resources like translations (ts/qm files), icons etc. Up until now, executing lupdate in main directory or application subdirectory was sufficient to update translation file:
lupdate Program.pro
or
lupdate Main.pro
but this does not work anymore with Qt 4.7.1, I get a lot of weird errors like this:
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not im
plemented
C:/Qt/4.7.1/src/gui/kernel/qactiongroup.h:45: circular inclusion of c:/Qt/4.7.1/
include/QtGui/qaction.h
c:/Qt/4.7.1/include/QtGui/qboxlayout.h:1: circular inclusion of C:/Qt/4.7.1/src/
gui/kernel/qboxlayout.h
C:/Qt/4.7.1/src/gui/kernel/qgridlayout.h:45: circular inclusion of c:/Qt/4.7.1/i
nclude/QtGui/qlayout.h
C:/Qt/4.7.1/mkspecs/features/default_post.prf(5):Function 'system' is not implem
ented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not im
and at the end, not any tr() string in my code was found:
Updating 'resource/Tracker_de.ts'...
Found 0 source text(s) (0 new and 0 already existing)
Kept 175 obsolete entries
making any old strings obsolete.
Any help is greatly appreciated, thanks
AlGaN
Edit: Systen: Win7 64bit, Qt 4.7.1 32-bit, MS VC 2010
There seems to be a bug open related to this issue:
http://bugreports.qt.nokia.com/browse/QTBUG-6587#
Wondering that nobody has probs in this issue though it may affect all multilanguage apps?
I use Linguist & lupdate/lrelease cycle ever since to update tr() strings in my code for translating.
But with recent Qt 4.7.1 version this does not seem to work anymore? I have a big project with several subdirs, structured like this:
- MainDir
main.pro
- Module1
module1.pro
- Module2
module2.pro
[...]
- Main
main.pro
- resource
Program_de.ts
[...]
Program_de.qm
[...]
the Module subdirs being dynamic libraries (DLLs) and Main being the application
TEMPLATE=app and the resource dir containing all program resources like translations (ts/qm files), icons etc. Up until now, executing lupdate in main directory or application subdirectory was sufficient to update translation file:
lupdate Program.pro
or
lupdate Main.pro
but this does not work anymore with Qt 4.7.1, I get a lot of weird errors like this:
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not im
plemented
C:/Qt/4.7.1/src/gui/kernel/qactiongroup.h:45: circular inclusion of c:/Qt/4.7.1/
include/QtGui/qaction.h
c:/Qt/4.7.1/include/QtGui/qboxlayout.h:1: circular inclusion of C:/Qt/4.7.1/src/
gui/kernel/qboxlayout.h
C:/Qt/4.7.1/src/gui/kernel/qgridlayout.h:45: circular inclusion of c:/Qt/4.7.1/i
nclude/QtGui/qlayout.h
C:/Qt/4.7.1/mkspecs/features/default_post.prf(5):Function 'system' is not implem
ented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not im
plemented
C:/Qt/4.7.1/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not im
and at the end, not any tr() string in my code was found:
Updating 'resource/Tracker_de.ts'...
Found 0 source text(s) (0 new and 0 already existing)
Kept 175 obsolete entries
making any old strings obsolete.
Any help is greatly appreciated, thanks
AlGaN
Edit: Systen: Win7 64bit, Qt 4.7.1 32-bit, MS VC 2010
There seems to be a bug open related to this issue:
http://bugreports.qt.nokia.com/browse/QTBUG-6587#
Wondering that nobody has probs in this issue though it may affect all multilanguage apps?