[PC-BSD Commits] r628 - pcbsd/trunk/XGUISource

svn at pcbsd.org svn at pcbsd.org
Mon Aug 27 20:48:03 PDT 2007


Author: kris
Date: 2007-08-27 20:48:03 -0700 (Mon, 27 Aug 2007)
New Revision: 628

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

Make sure the translator gets loaded for the confirm dialog in the XGUI tool



Modified: pcbsd/trunk/XGUISource/main.cpp
===================================================================
--- pcbsd/trunk/XGUISource/main.cpp	2007-08-27 21:49:28 UTC (rev 627)
+++ pcbsd/trunk/XGUISource/main.cpp	2007-08-28 03:48:03 UTC (rev 628)
@@ -35,7 +35,10 @@
 	if ( flag == "-test" )
 	{
 
-    //if ( Tmp == "-test") {
+        QTranslator translator( 0 );
+        translator.load( QString("XGUISource_") + QTextCodec::locale(), "/PCBSD/LANGS/" );
+        a.installTranslator( &translator );
+
         XGUI w;
 	dialogConfirm d;
         d.ProgramInit();



More information about the Commits mailing list