1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 19:49:15 +02:00

Moved translations outside of the binary

This commit is contained in:
2018-02-08 18:16:44 +01:00
parent 331cb48e11
commit 4b64ee467c
5 changed files with 55 additions and 8 deletions

View File

@ -19,8 +19,7 @@ App::App(int &argc, char **argv) : QApplication(argc, argv),
_argc(argc), _argv(argv)
{
QTranslator *gpxsee = new QTranslator(this);
QString locale = QLocale::system().name();
gpxsee->load(QString(":/lang/gpxsee_") + locale);
gpxsee->load(QLocale::system(), "gpxsee", "_", LOCALE_DIR);
installTranslator(gpxsee);
QTranslator *qt = new QTranslator(this);

View File

@ -41,5 +41,6 @@
#define GLOBAL_MAP_DIR GLOBAL_DIR + QString("/") + MAP_DIR
#define GLOBAL_POI_DIR GLOBAL_DIR + QString("/") + POI_DIR
#define TILES_DIR USER_DIR + QString("/tiles")
#define LOCALE_DIR GLOBAL_DIR + QString("/locale")
#endif /* CONFIG_H */