mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
** fixed German translation ** added translation support to external help applications (grid_maker and gpsimporter) git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1535 c8812cc2-4d05-0410-92ff-de0c093fc19c
29 lines
571 B
C++
29 lines
571 B
C++
#ifdef HAVE_CONFIG_H
|
|
#include <qgsconfig.h>
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "plugingui.h"
|
|
#include <qapplication.h>
|
|
#include <qtextcodec.h>
|
|
#include <qtranslator.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
/* Load translationfile */
|
|
QTranslator tor(0);
|
|
tor.load(QString("qgis_") + QTextCodec::locale(), QString(PKGDATAPATH) + "/i18n");
|
|
a.installTranslator(&tor);
|
|
|
|
PluginGui *myPluginGui=new PluginGui();
|
|
a.setMainWidget(myPluginGui);
|
|
myPluginGui->show();
|
|
|
|
return a.exec();
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|