1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 11:39:16 +02:00

Enable localization on Android

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

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