diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/experimental/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp b/experimental/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp new file mode 100644 index 000000000..141b8c8d1 --- /dev/null +++ b/experimental/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp @@ -0,0 +1,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(); +} |