Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
55c4c464
Commit
55c4c464
authored
Jun 22, 2014
by
Fabio Bas
Browse files
OSX: get translation path from qt.conf instead of hardcoding it
parent
2eebddea
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/main.cpp
View file @
55c4c464
...
...
@@ -99,11 +99,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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment