mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 13:41:16 +01:00
Load qt translations on OS X
This commit is contained in:
parent
af99e4e05a
commit
8dc5cb7aa8
@ -23,12 +23,12 @@ App::App(int &argc, char **argv) : QApplication(argc, argv),
|
|||||||
installTranslator(gpxsee);
|
installTranslator(gpxsee);
|
||||||
|
|
||||||
QTranslator *qt = new QTranslator(this);
|
QTranslator *qt = new QTranslator(this);
|
||||||
#ifdef Q_OS_WINDOWS
|
#if defined(Q_OS_WINDOWS) || defined(Q_OS_MAC)
|
||||||
qt->load(QLocale::system(), "qt", "_", TRANSLATIONS_DIR);
|
qt->load(QLocale::system(), "qt", "_", TRANSLATIONS_DIR);
|
||||||
#else // Q_OS_WINDOWS
|
#else // Q_OS_WINDOWS || Q_OS_MAC
|
||||||
qt->load(QLocale::system(), "qt", "_", QLibraryInfo::location(
|
qt->load(QLocale::system(), "qt", "_", QLibraryInfo::location(
|
||||||
QLibraryInfo::TranslationsPath));
|
QLibraryInfo::TranslationsPath));
|
||||||
#endif // Q_OS_WINDOWS
|
#endif // Q_OS_WINDOWS || Q_OS_MAC
|
||||||
installTranslator(qt);
|
installTranslator(qt);
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
Loading…
Reference in New Issue
Block a user