diff options
Diffstat (limited to 'src/localehandler.cc')
-rw-r--r-- | src/localehandler.cc | 3 |
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); |