File 0010-translations.patch of Package gpsbabel

diff --git a/gui/mainwindow.cc b/gui/mainwindow.cc
index 22b2b449..f0f1fde4 100644
--- a/gui/mainwindow.cc
+++ b/gui/mainwindow.cc
@@ -71,6 +71,10 @@
 #include "version_mismatch.h"          // for VersionMismatch
 
 
+#ifndef DATADIR
+#define DATADIR "/usr/share"
+#endif
+
 
 const int BabelData::noType_ = -1;
 const int BabelData::fileType_ = 0;
@@ -219,8 +223,8 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent)
 
   ui_.outputWindow->setReadOnly(true);
 
-  langPath_ = QApplication::applicationDirPath();
-  langPath_.append("/translations/");
+  langPath_ = DATADIR;
+  langPath_.append("/qt5/translations/");
 
   // Start up in the current system language.
   loadLanguage(QLocale::system().name());
openSUSE Build Service is sponsored by