MacOS: Move translations to the right place

This commit is contained in:
Klaas Freitag 2012-06-18 15:52:56 +02:00
parent cb99ccf75d
commit 689ef1254b
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ else()
#FIXME: hardcoded path
install(FILES /usr/local/lib/csync-0/csync_owncloud.so DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Plugins)
install(FILES ${mirall_I18N} DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/MacOS)
install(FILES ${mirall_I18N} DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/translations)
list(APPEND dirs "/usr/local/lib")
endif()

View File

@ -100,7 +100,7 @@ Application::Application(int &argc, char **argv) :
mirallTranslator->load("mirall_" + QLocale::system().name(), QLatin1String("/usr/share/mirall/i18n/"));
#endif
#ifdef Q_OS_MAC
mirallTranslator->load("mirall_" + QLocale::system().name(), applicationDirPath()+QLatin1String("/translations") ); // path defaults to app dir.
mirallTranslator->load("mirall_" + QLocale::system().name(), applicationDirPath()+QLatin1String("/../translations") ); // path defaults to app dir.
#endif
#ifdef Q_QS_WIN32
mirallTranslator->load("mirall_" + QLocale::system().name()); // path defaults to app dir.