]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix loading of bat translations. Patch from bug #1890
authorKern Sibbald <kern@sibbald.com>
Sat, 16 Feb 2013 18:19:02 +0000 (19:19 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:08 +0000 (14:51 +0200)
bacula/src/qt-console/main.cpp

index 5214978f8090c2f77965fb73395b64d294f71251..7c1f55bfbe2907a3d0a145a2cdf56402ca126392 100644 (file)
@@ -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);