mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-15 15:03:58 +00:00
fix translations files path (#184)
* fix translations files path * add soft link for translation files
This commit is contained in:
committed by
Dharkael
parent
a5ad7299b0
commit
91bf065e82
@@ -29,9 +29,9 @@ const QString PathInfo::blackIconPath() {
|
||||
}
|
||||
|
||||
QStringList PathInfo::translationsPaths() {
|
||||
QString binaryPath = QFileInfo(qApp->applicationFilePath())
|
||||
QString binaryPath = QFileInfo(qApp->applicationDirPath())
|
||||
.absoluteFilePath();
|
||||
QString trPath = QDir::toNativeSeparators(binaryPath) + "translations";
|
||||
QString trPath = QDir::toNativeSeparators(binaryPath + "/translations") ;
|
||||
#if defined(Q_OS_LINUX)
|
||||
return QStringList()
|
||||
<< QString(APP_PREFIX) + "/share/flameshot/translations"
|
||||
|
||||
Reference in New Issue
Block a user