Add custom packaging prefix to the translation paths
This commit is contained in:
@@ -207,6 +207,8 @@ unix:!macx {
|
||||
}
|
||||
}
|
||||
|
||||
DEFINES += APP_PREFIX=\\\"$$PREFIX\\\"
|
||||
|
||||
target.path = $${BASEDIR}$${PREFIX}/bin/
|
||||
|
||||
qmfile.path = $${BASEDIR}$${PREFIX}/share/flameshot/translations/
|
||||
|
||||
@@ -26,6 +26,7 @@ QStringList PathInfo::translations() {
|
||||
QString trPath = QDir::toNativeSeparators(binaryPath) + "translations";
|
||||
#if defined(Q_OS_LINUX)
|
||||
return QStringList()
|
||||
<< QString(APP_PREFIX) + "/share/flameshot/translations"
|
||||
<< trPath
|
||||
<< "/usr/share/flameshot/translations"
|
||||
<< "/usr/local/share/flameshot/translations";
|
||||
|
||||
Reference in New Issue
Block a user