mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Enable localization on Android
This commit is contained in:
parent
53f1c66ab0
commit
c9330bf273
@ -565,5 +565,7 @@ android {
|
||||
csv.path = /assets/csv
|
||||
symbols.files = $$files(icons/symbols/*.png)
|
||||
symbols.path = /assets/symbols
|
||||
INSTALLS += maps csv symbols
|
||||
translations.files = $$files(lang/*.qm)
|
||||
translations.path = /assets/translations
|
||||
INSTALLS += maps csv symbols translations
|
||||
}
|
||||
|
@ -120,8 +120,13 @@ QString ProgramPaths::tilesDir()
|
||||
|
||||
QString ProgramPaths::translationsDir()
|
||||
{
|
||||
#ifdef Q_OS_ANDROID
|
||||
return assetsPath(QStandardPaths::locate(DATA_LOCATION, TRANSLATIONS_DIR,
|
||||
QStandardPaths::LocateDirectory), TRANSLATIONS_DIR);
|
||||
#else // Q_OS_ANDROID
|
||||
return QStandardPaths::locate(DATA_LOCATION, TRANSLATIONS_DIR,
|
||||
QStandardPaths::LocateDirectory);
|
||||
#endif // Q_OS_ANDROID
|
||||
}
|
||||
|
||||
QString ProgramPaths::ellipsoidsFile()
|
||||
|
Loading…
Reference in New Issue
Block a user