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:
@ -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);
|
||||
|
@ -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 */
|
||||
|
Reference in New Issue
Block a user