Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4
gpsbabel
0010-translations.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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());
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor