summaryrefslogtreecommitdiff
path: root/src/localehandler.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-10-06 12:37:44 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-10-06 12:37:44 +0200
commitfa5b7e32e12b6310c93a9d3c1c4654f61c0f6679 (patch)
treed00adbf15d1393b127b83b8e415128c9b849456c /src/localehandler.cc
parent0e2db9214ff3d6cbe4388224f405bc5d67d6a8d3 (diff)
Make relative paths cross-platform.
Diffstat (limited to 'src/localehandler.cc')
-rw-r--r--src/localehandler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localehandler.cc b/src/localehandler.cc
index 9bc08c8..37eb4ef 100644
--- a/src/localehandler.cc
+++ b/src/localehandler.cc
@@ -31,13 +31,14 @@
#include <QTranslator>
#include <QString>
#include <QFile>
+#include <QDir>
LocaleHandler::LocaleHandler(QApplication& app)
{
QString locale = QLocale().name().section('_', 0, 0);
if(!locale.isEmpty() && locale != "C")
{
- QString file = LOCALEDIR"/dgedit_" + locale + ".qm";
+ QString file = QString(LOCALEDIR) + QDir::separator() + "dgedit_" + locale + ".qm";
if(QFile::exists(file))
{
translator.load(file);