Hi,
I trying to implement 'translation' to some labels of my project.
So I'm wrapping every label with the tr() macro to apply lupdate in a second moment.
My doubt is how can I do it with the labels added with the designer?
Regards
Hi,
I trying to implement 'translation' to some labels of my project.
So I'm wrapping every label with the tr() macro to apply lupdate in a second moment.
My doubt is how can I do it with the labels added with the designer?
Regards
Franco Amato
All user visible strings generated by Designer are already wrapped into tr() calls. This is of course well documented in the reference.
Thank you very much.
I gaveand I got many errors as in the screenshot I'm attaching lupdate.jpg.lupdate -verbose myprofile.pro
Where are my mistakes?
I copy here the shell output as it's not well visible in the image
RegardsC:\dev\ECP_Studio>lupdate -verbose ECP_Studio.pro
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not im
plemented
lupdate warning: no TS files specified. Only diagnostics will be produced for 'E
CP_Studio.pro'.
C:/Qt/4.6.3/src/corelib/tools/qstringbuilder.h:45: circular inclusion of c:/Qt/4
.6.3/include/QtCore/qstring.h
C:/Qt/4.6.3/src/gui/painting/qwmatrix.h:45: circular inclusion of c:/Qt/4.6.3/in
clude/QtGui/qmatrix.h
c:/Qt/4.6.3/include/QtGui/qboxlayout.h:1: circular inclusion of C:/Qt/4.6.3/src/
gui/kernel/qboxlayout.h
C:/Qt/4.6.3/src/gui/kernel/qgridlayout.h:45: circular inclusion of c:/Qt/4.6.3/i
nclude/QtGui/qlayout.h
C:/Qt/4.6.3/src/gui/kernel/qactiongroup.h:45: circular inclusion of c:/Qt/4.6.3/
include/QtGui/qaction.h
Last edited by franco.amato; 18th October 2010 at 23:32.
Franco Amato
You remembered about adding translation entries in the project file, right? You do know the process of translating your application is explained in the docs, correct?
Franco Amato
Yes, you are wrong. There is a "step by step" procedure described in the docs, just follow it. Pay speciall attention about the order of doing things.
Ok I found one of my mistakes. I forgot to add the entries in the pro file before callung lupdate,
but I'm still getting some strange errors ( and this time I don't think it's for my mistake ).
Here the shell output:
What does meanC:\dev\ECP_Studio>lupdate -verbose ECP_Studio.pro
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not im
plemented
C:/Qt/4.6.3/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not im
plemented
C:/Qt/4.6.3/src/corelib/tools/qstringbuilder.h:45: circular inclusion of c:/Qt/4
.6.3/include/QtCore/qstring.h
C:/Qt/4.6.3/src/gui/painting/qwmatrix.h:45: circular inclusion of c:/Qt/4.6.3/in
clude/QtGui/qmatrix.h
c:/Qt/4.6.3/include/QtGui/qboxlayout.h:1: circular inclusion of C:/Qt/4.6.3/src/
gui/kernel/qboxlayout.h
C:/Qt/4.6.3/src/gui/kernel/qgridlayout.h:45: circular inclusion of c:/Qt/4.6.3/i
nclude/QtGui/qlayout.h
C:/Qt/4.6.3/src/gui/kernel/qactiongroup.h:45: circular inclusion of c:/Qt/4.6.3/
include/QtGui/qaction.h
Updating 'ecpstudio_en.ts'...
Found 91 source text(s) (91 new and 0 already existing)
Updating 'ecpstudio_it.ts'...
Found 91 source text(s) (91 new and 0 already existing)RegardsFunction 'eval' is not implemented
Franco Amato
These are all warnings, you don't need to worry about them. Remove the -verbose parameter from lupdate call and they will probably go away.
Because function 'eval' is not implemented.
Bookmarks