|
|
bd7178b |
Only in cppcheck-1.88: .astylerc
|
|
|
bd7178b |
Only in cppcheck-1.88: .codacy.yml
|
|
|
bd7178b |
Only in cppcheck-1.88: .gitignore
|
|
|
bd7178b |
diff -urp cppcheck-1.88.orig/gui/CMakeLists.txt cppcheck-1.88/gui/CMakeLists.txt
|
|
|
bd7178b |
--- cppcheck-1.88.orig/gui/CMakeLists.txt 2019-07-01 20:46:32.662721323 -0400
|
|
|
bd7178b |
+++ cppcheck-1.88/gui/CMakeLists.txt 2019-07-01 20:48:29.298708807 -0400
|
|
|
bd7178b |
@@ -30,7 +30,7 @@ if (BUILD_GUI)
|
|
|
bd7178b |
endif()
|
|
|
dd7b18f |
|
|
|
dd7b18f |
install(TARGETS cppcheck-gui RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
|
|
|
dd7b18f |
- install(FILES ${qms} DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
|
|
|
e13f8f2 |
+ install(FILES ${qms} DESTINATION share/${PROJECT_NAME}/lang COMPONENT applications)
|
|
|
dd7b18f |
|
|
|
dd7b18f |
install(FILES cppcheck-gui.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
|
|
dd7b18f |
|
|
|
bd7178b |
diff -urp cppcheck-1.88.orig/gui/translationhandler.cpp cppcheck-1.88/gui/translationhandler.cpp
|
|
|
bd7178b |
--- cppcheck-1.88.orig/gui/translationhandler.cpp 2019-06-29 03:51:25.000000000 -0400
|
|
|
bd7178b |
+++ cppcheck-1.88/gui/translationhandler.cpp 2019-07-01 20:49:18.750703500 -0400
|
|
|
f8cc68f |
@@ -116,15 +116,7 @@ bool TranslationHandler::setLanguage(con
|
|
|
19d3766 |
if (datadir.isEmpty())
|
|
|
19d3766 |
datadir = appPath;
|
|
|
19d3766 |
|
|
|
19d3766 |
- QString translationFile;
|
|
|
19d3766 |
- if (QFile::exists(datadir + "/lang/" + mTranslations[index].mFilename + ".qm"))
|
|
|
19d3766 |
- translationFile = datadir + "/lang/" + mTranslations[index].mFilename + ".qm";
|
|
|
19d3766 |
-
|
|
|
19d3766 |
- else if (QFile::exists(datadir + "/" + mTranslations[index].mFilename + ".qm"))
|
|
|
19d3766 |
- translationFile = datadir + "/" + mTranslations[index].mFilename + ".qm";
|
|
|
19d3766 |
-
|
|
|
19d3766 |
- else
|
|
|
19d3766 |
- translationFile = appPath + "/" + mTranslations[index].mFilename + ".qm";
|
|
|
19d3766 |
+ QString translationFile("/usr/share/CppCheck/lang/" + mTranslations[index].mFilename + ".qm");
|
|
|
19d3766 |
|
|
|
19d3766 |
if (!mTranslator->load(translationFile) && !failure) {
|
|
|
dd7b18f |
//If it failed, lets check if the default file exists
|
|
|
bd7178b |
Only in cppcheck-1.88: .mailmap
|
|
|
bd7178b |
Only in cppcheck-1.88: .travis_llvmcheck_suppressions
|
|
|
bd7178b |
Only in cppcheck-1.88: .travis_suppressions
|
|
|
bd7178b |
Only in cppcheck-1.88: .travis.yml
|