From: Kern Sibbald Date: Sat, 16 Feb 2013 18:19:02 +0000 (+0100) Subject: Fix loading of bat translations. Patch from bug #1890 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2eae251545625828816416ff94542f3fb796d04c;p=bacula%2Fbacula Fix loading of bat translations. Patch from bug #1890 --- 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);