From 2b371fd96b8b61a237405b32a22a768de93f3974 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 22 Jun 2014 21:19:10 +0200 Subject: [PATCH] OSX: get translation path from qt.conf instead of hardcoding it --- cockatrice/src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cockatrice/src/main.cpp b/cockatrice/src/main.cpp index 84975fb17..18c8b56e7 100644 --- a/cockatrice/src/main.cpp +++ b/cockatrice/src/main.cpp @@ -91,11 +91,7 @@ int main(int argc, char *argv[]) if (translationPath.isEmpty()) { #ifdef Q_OS_MAC - QDir translationsDir = app.applicationDirPath(); - translationsDir.cd(".."); - translationsDir.cd("Resources"); - translationsDir.cd("translations"); - translationPath = translationsDir.absolutePath(); + translationPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath); #elif Q_OS_WIN translationPath = app.applicationDirPath() + "/translations"; #endif