1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Enable localization on Android

This commit is contained in:
Martin Tůma 2022-07-06 19:43:56 +02:00
parent 53f1c66ab0
commit c9330bf273
2 changed files with 8 additions and 1 deletions

View File

@ -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
}

View File

@ -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()