mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
mac fixes
This commit is contained in:
parent
61f5cd478d
commit
875610e1b3
4 changed files with 15 additions and 9 deletions
|
|
@ -49,9 +49,9 @@ SoundEngine *soundEngine;
|
|||
|
||||
const QString translationPrefix = "cockatrice";
|
||||
#ifdef TRANSLATION_PATH
|
||||
const QString translationPath = TRANSLATION_PATH;
|
||||
QString translationPath = TRANSLATION_PATH;
|
||||
#else
|
||||
const QString translationPath = QString();
|
||||
QString translationPath = QString();
|
||||
#endif
|
||||
|
||||
void myMessageOutput(QtMsgType /*type*/, const char *msg)
|
||||
|
|
@ -69,7 +69,8 @@ void installNewTranslator()
|
|||
|
||||
qtTranslator->load("qt_" + lang, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||
qApp->installTranslator(qtTranslator);
|
||||
|
||||
if (!translationPath.startsWith("/"))
|
||||
translationPath.prepend(qApp->applicationDirPath() + "/");
|
||||
if (!settingsCache->getCustomTranslationFile().isEmpty())
|
||||
translator->load(settingsCache->getCustomTranslationFile());
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue