Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d2229253b8f3127ab89b179a82cc8466 > files > 367

libqxt-devel-0.6.1-2.fc15.i686.rpm

#include <QApplication>
#include <QTranslator>
#include <QDebug>
#include <QxtLanguageComboBox>
#include "testdialog.h"

int main(int argc, char* argv[])
{
//    Q_INIT_RESOURCE(flags);

    QApplication app(argc, argv);

    QTranslator trans;
    bool ok = trans.load(":/qxt_"+QLocale::system().name());
    if (!ok)
      qDebug() << "Loading translation failed.";
    qDebug() << trans.translate("Country", "Germany");

    app.installTranslator(&trans);

    TestDialog* w = new TestDialog();

    w->show();
    app.exec();
}