2825eff
diff -up cppcheck-1.73/gui/CMakeLists.txt.translations cppcheck-1.73/gui/CMakeLists.txt
2825eff
--- cppcheck-1.73/gui/CMakeLists.txt.translations	2016-04-10 03:12:17.000000000 +0200
2825eff
+++ cppcheck-1.73/gui/CMakeLists.txt	2016-04-10 03:13:24.959212031 +0200
2825eff
@@ -29,7 +29,7 @@ if (BUILD_GUI)
aec3384
 
2825eff
 
2825eff
     install(TARGETS cppcheck-gui RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
2825eff
-    install(FILES ${qms} DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
19d3766
+    install(FILES ${qms} DESTINATION share/${PROJECT_NAME}/lang/ COMPONENT applications)
aec3384
 
aec3384
     set(CMAKE_AUTOMOC OFF)
aec3384
 
2825eff
diff -up cppcheck-1.73/gui/translationhandler.cpp.translations cppcheck-1.73/gui/translationhandler.cpp
2825eff
--- cppcheck-1.73/gui/translationhandler.cpp.translations	2016-04-08 20:47:43.000000000 +0200
2825eff
+++ cppcheck-1.73/gui/translationhandler.cpp	2016-04-10 03:12:17.819211809 +0200
2825eff
@@ -113,15 +113,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) {
19d3766
         translationFile += ".qm";