Files
MINGW-packages/mingw-w64-cppcheck/0010-change-language-files-path.patch
Wolfgang Stöggl 06433746a6 cppcheck: update to 1.89
- Update 0010-change-language-files-path.patch to 1.89
- Use FILESDIR instead of CFGDIR, see:
  https://github.com/danmar/cppcheck/commit/a17f2a6
- Install .qm files in subfolder 'lang' and not 'cfg/lang' any more.
- Use MATCHCOMPILER=yes instead of SRCDIR=build, see:
  https://github.com/danmar/cppcheck/commit/1b4485a
  Fixes warning Makefile:10:
  Usage of SRCDIR to activate match compiler is deprecated.
  Use MATCHCOMPILER=yes instead.
2019-09-21 08:47:27 +02:00

12 lines
502 B
Diff

--- a/gui/translationhandler.cpp 2019-09-01 15:01:12.000000000 +0200
+++ b/gui/translationhandler.cpp 2019-09-20 23:24:54.233058500 +0200
@@ -114,7 +114,7 @@
QSettings settings;
QString datadir = settings.value("DATADIR").toString();
if (datadir.isEmpty())
- datadir = appPath;
+ datadir = appPath + "/../share/cppcheck/lang/";
QString translationFile;
if (QFile::exists(datadir + "/lang/" + mTranslations[index].mFilename + ".qm"))