[PC-BSD Commits] r642 - pcbsd/trunk/ethernetconfig/src

svn at pcbsd.org svn at pcbsd.org
Tue Aug 28 10:03:20 PDT 2007


Author: kris
Date: 2007-08-28 10:03:20 -0700 (Tue, 28 Aug 2007)
New Revision: 642

Modified:
   pcbsd/trunk/ethernetconfig/src/main.cpp
Log:

Setup ethernet config to use .mo translations properly



Modified: pcbsd/trunk/ethernetconfig/src/main.cpp
===================================================================
--- pcbsd/trunk/ethernetconfig/src/main.cpp	2007-08-28 16:35:21 UTC (rev 641)
+++ pcbsd/trunk/ethernetconfig/src/main.cpp	2007-08-28 17:03:20 UTC (rev 642)
@@ -55,10 +55,14 @@
     KUniqueApplication app;
     //KApplication app;
     ethernetconfig *mainWin = 0;
+
+    QString LANG="ethernetconfig";
+    KGlobal::locale()->insertCatalogue(LANG);
+
     
-    QTranslator translator( 0 );
-    translator.load( QString("ethernetconfig_") + QTextCodec::locale(), "/PCBSD/LANGS/" );
-    app.installTranslator( &translator );
+ //   QTranslator translator( 0 );
+ //   translator.load( QString("ethernetconfig_") + QTextCodec::locale(), "/PCBSD/LANGS/" );
+ //   app.installTranslator( &translator );
 
     if (app.isRestored())
     {



More information about the Commits mailing list