From 58665c455a057828d1f46e9a9f72f6a94f30b459 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 16 Feb 2013 19:19:02 +0100 Subject: [PATCH] Fix loading of bat translations. Patch from bug #1890 --- bacula/src/qt-console/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index 5214978f80..7c1f55bfbe 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -76,11 +76,11 @@ int main(int argc, char *argv[]) QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); QTranslator qtTranslator; - qtTranslator.load(QString("qt_") + QLocale::system().name()); + qtTranslator.load(QString("qt_") + QLocale::system().name(),QLibraryInfo::location(QLibraryInfo::TranslationsPath)); app->installTranslator(&qtTranslator); QTranslator batTranslator; - batTranslator.load(QString("bat_") + QLocale::system().name()); + batTranslator.load(QString("bat_") + QLocale::system().name(),QLibraryInfo::location(QLibraryInfo::TranslationsPath)); app->installTranslator(&batTranslator); register_message_callback(message_callback); -- 2.39.5