modify trnas path
This commit is contained in:
parent
0be84e9717
commit
155324ea2f
@ -84,7 +84,8 @@ void RecourceHelper::Init() {
|
||||
#ifndef NDEBUG
|
||||
const QString transName = QString("./%1_%2.qm").arg(appName, QLocale().name());
|
||||
#else
|
||||
const QString transName = QString("./translations/%1_%2.qm").arg(appName, QLocale().name());
|
||||
const QString appDirPath = QApplication::applicationDirPath();
|
||||
const QString transName = QString("%1/translations/%2_%3.qm").arg(appDirPath, appName, QLocale().name());
|
||||
#endif
|
||||
qDebug() << transName;
|
||||
bool success = trans_.load(transName);
|
||||
|
Loading…
Reference in New Issue
Block a user