summaryrefslogtreecommitdiff
path: root/src/localehandler.cc
diff options
context:
space:
mode:
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);