Add custom packaging prefix to the translation paths

This commit is contained in:
lupoDharkael
2018-02-12 20:59:26 +01:00
parent 56957caa5c
commit 1fa3c8f81a
2 changed files with 3 additions and 0 deletions

View File

@@ -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";