+#include +#include +#include +// load up standard Qt4 localization; thanks zerg@ and wrar@ +// for advice (mike@altlinux on 20070302); see also +// http://doc.trolltech.com/4.2/qtranslator.html +#ifndef WIN32 + QTranslator translator; + translator.load(QLibraryInfo::location(QLibraryInfo::TranslationsPath) + "/qt_"+QLocale::system().name()); + a.installTranslator(&translator); +#endif