[PC-BSD Commits] r1452 - pcbsd/trunk/SystemUpdater

svn at pcbsd.org svn at pcbsd.org
Tue Feb 26 07:23:43 PST 2008


Author: kris
Date: 2008-02-26 07:23:43 -0800 (Tue, 26 Feb 2008)
New Revision: 1452

Modified:
   pcbsd/trunk/SystemUpdater/main.cpp
Log:

Added translation support to the system-updater



Modified: pcbsd/trunk/SystemUpdater/main.cpp
===================================================================
--- pcbsd/trunk/SystemUpdater/main.cpp	2008-02-26 15:13:29 UTC (rev 1451)
+++ pcbsd/trunk/SystemUpdater/main.cpp	2008-02-26 15:23:43 UTC (rev 1452)
@@ -6,6 +6,7 @@
 #include <qtooltip.h>
 #include <kcmdlineargs.h>
 #include <kuniqueapplication.h>
+#include <qtextcodec.h>
 
 #include <UpdaterTray.h>
 
@@ -27,6 +28,11 @@
    a.setMainWidget(&tray);
    a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
 
+    QTranslator translator( 0 );
+    translator.load( QString("SystemUpdater_") + QTextCodec::locale(), "/PCBSD/LANGS/" );
+    a.installTranslator( &translator );
+
+
    // Init our program
    tray.programInit();
    tray.show();



More information about the Commits mailing list