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-Tag: Release-7.0.0~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58665c455a057828d1f46e9a9f72f6a94f30b459;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);