Merge pull request #452 from nextcloud/organize-windows-translation

Windows: moves translation files to /i18n.
This commit is contained in:
Roeland Jago Douma 2018-06-27 13:14:19 +02:00 committed by GitHub
commit 5ce9aedb7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -264,9 +264,10 @@ if(NOT BUILD_OWNCLOUD_OSX_BUNDLE)
string(REPLACE "-${APPLICATION_ICON_NAME}-icon.png" "" _res ${_res})
install(FILES ${_file} RENAME ${APPLICATION_ICON_NAME}.png DESTINATION ${DATADIR}/icons/hicolor/${_res}x${_res}/apps)
endforeach(_file)
endif(NOT WIN32)
install(FILES ${client_I18N} DESTINATION ${SHAREDIR}/${APPLICATION_EXECUTABLE}/i18n)
install(FILES ${client_I18N} DESTINATION ${SHAREDIR}/${APPLICATION_EXECUTABLE}/i18n)
else()
install(FILES ${client_I18N} DESTINATION i18n)
endif()
# we may not add MACOSX_BUNDLE here, if not building one

View file

@ -83,7 +83,7 @@ namespace {
return devTrPath;
}
#if defined(Q_OS_WIN)
return QApplication::applicationDirPath();
return QApplication::applicationDirPath() + QLatin1String("/i18n/");
#elif defined(Q_OS_MAC)
return QApplication::applicationDirPath() + QLatin1String("/../Resources/Translations"); // path defaults to app dir.
#elif defined(Q_OS_UNIX)