summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp
blob: 141b8c8d1f2854006fcb2eca8e2c3488a84aa2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/****************************************************************
**
** Translation tutorial 3
**
****************************************************************/

#include "mainwindow.h"

#include <tqapplication.h>
#include <tqstring.h>
#include <tqtextcodec.h>
#include <tqtranslator.h>

int main( int argc, char **argv )
{
    TQApplication app( argc, argv );

    TQTranslator translator( 0 );
    translator.load( TQString("tt3_") + TQTextCodec::locale(), "." );
    app.installTranslator( &translator );

    MainWindow *mw = new MainWindow;
    app.setMainWidget( mw );
    mw->show();
    return app.exec();
}