[Qt4] lupdate meldet Fehler



  • Hallo,

    ich möchte ein Qt-Projekt für die Übersetzung vorbereiten, dazu nutze ich lupdate. Leider erhalte ich bei jedem Projekt dieselbe Fehlermeldung, hier mal ein minimalistisches Beispiel:

    /* main.cpp */
    
    #include <QtGui>
    
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
        QWidget w;
        w.setWindowTitle(QObject::tr("Hello, World!"));
        w.resize(400, 300);
        w.show();
        return app.exec();
    }
    
    /* HelloWorld.pro */
    
    TARGET = HelloWorld
    TEMPLATE = app
    SOURCES += main.cpp
    

    Jetzt rufe ich "lupdate helloworld.pro" auf und erhalte die Fehlermeldung

    lupdate.exe : C:/Dev/Qt/qt/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not implemented
    Bei Zeile:1 Zeichen:8
    + lupdate <<<< helloworld.pro
    + CategoryInfo : NotSpecified: (C:/Dev/Qt/qt/mk...not implemented:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

    C:/Dev/Qt/qt/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not implemented

    C:/Dev/Qt/qt/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not implemented

    C:/Dev/Qt/qt/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not implemented

    C:/Dev/Qt/qt/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not implemented

    C:/Dev/Qt/qt/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not implemented

    C:/Dev/Qt/qt/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not implemented

    C:/Dev/Qt/qt/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not implemented

    lupdate warning: no TS files specified. Only diagnostics will be produced for '
    helloworld.pro'.

    C:/Dev/Qt/qt/src/corelib/tools/qstringbuilder.h:45: circular inclusion of c:/Dev/Qt/qt/include/QtCore/qstring.h

    C:/Dev/Qt/qt/src/gui/painting/qwmatrix.h:45: circular inclusion of c:/Dev/Qt/qt/include/QtGui/qmatrix.h

    C:/Dev/Qt/qt/src/gui/kernel/qactiongroup.h:45: circular inclusion of c:/Dev/Qt/qt/include/QtGui/qaction.h

    c:/Dev/Qt/qt/include/QtGui/qboxlayout.h:1: circular inclusion of C:/Dev/Qt/qt/src/gui/kernel/qboxlayout.h

    C:/Dev/Qt/qt/src/gui/kernel/qgridlayout.h:45: circular inclusion of c:/Dev/Qt/qt/include/QtGui/qlayout.h

    Woher kommt diese Problem? Ich verwende übrigens das aktuelle SDK.



  • Dein .pro passt aber noch nicht!
    Schlag mal in der Doku "lupdate" auf. Da steht dann folgendes:

    Qt Project Files

    The easiest method to use lupdate and lrelease is by specifing a .pro Qt project file. There must be an entry in the TRANSLATIONS section of the project file for each language that is additional to the native language.

    Und dahinter kommt dann ein Beipiel, welches du dir auch anschauen solltest 😉



  • Das ging ja schnell, danke 🙂

    .ts Datei wird erzeugt, die Meldungen bleiben. Die kann man dann wohl getrost ignorieren?


Anmelden zum Antworten