Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 4442dd9bdde98a1d9ca2177557e87d7d > files > 367

libqxt-devel-0.6.1-3.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();
}