Do you have TRANSLATIONS += something.ts in your .pro file?
Do you have TRANSLATIONS += something.ts in your .pro file?
I modified my root .pro file and added this:
Then I ran lupdate mudlet.pro. I gave no errors. But I checked in both the ui folder and src folders, but mudlet_fr.ts wasn't present.FORMS = ui/alias_widget.ui
TRANSLATIONS = mudlet_fr.ts
Run qmake, compile the application so that uic has a chance to run and then run lupdate.
Sorry, but that didn't help either... still no .ts![]()
Could you explain step by step what exactly did you do? What versions of each application do you use, etc.?
I have a ui/ and a src/ folder. .ui filesare in ui/, and the .h ones and the rest of the code is in src/$ qmake --version
QMake version 2.01a
Using Qt version 4.4.1 in /usr/lib
$ lupdate -version
lupdate version 4.4.1
Here's how the root .pro looks like:
And the .pro in src/ folder:QT += webkit
SUBDIRS += src
TEMPLATE = subdirs
CONFIG += uic-qt4 \
warn_on \
qt \
thread
FORMS = ui/alias_widget.ui
TRANSLATIONS = mudlet_fr.ts
I did use qmake, qmake-qt4, then lupdate on the root .pro, but no .ts still. Not sure what am I doing wrong.QT += webkit \
network
SOURCES += mudlet.cpp \
TConsole.cpp \
ctelnet.cpp \
cmccp.cpp \
main.cpp \
dlgConnectionProfiles.cpp
HEADERS += mudlet.h \
TConsole.h \
ctelnet.h \
cmccp.h \
dlgConnectionProfiles.h
TEMPLATE = app
CONFIG += warn_on \
thread \
qt
TARGET = mudlet
RESOURCES = application.qrc
DISTFILES += test
AFAIR the subdirs template doesn't use FORMS and TRANSLATIONS variables. Move them to that second .pro file.
A subdir project doesn't compile anything. This stuff belongs to the .pro in the src/ folder:
Qt Code:
FORMS = ui/alias_widget.ui TRANSLATIONS = mudlet_fr.tsTo copy to clipboard, switch view to plain text mode
J-P Nurmi
Thank you wysota, jacek, and jpn. It works now.![]()
Bookmarks