[PC-BSD Commits] r7906 - pcbsd/current/src-qt4/pc-controlpanel

svn at pcbsd.org svn at pcbsd.org
Tue Oct 26 09:32:45 PDT 2010


Author: kris
Date: 2010-10-26 09:32:45 -0700 (Tue, 26 Oct 2010)
New Revision: 7906

Modified:
   pcbsd/current/src-qt4/pc-controlpanel/main.cpp
Log:

Updated pc-controlpanel to use PREFIX / config.h



Modified: pcbsd/current/src-qt4/pc-controlpanel/main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-controlpanel/main.cpp	2010-10-26 16:31:46 UTC (rev 7905)
+++ pcbsd/current/src-qt4/pc-controlpanel/main.cpp	2010-10-26 16:32:45 UTC (rev 7906)
@@ -4,6 +4,7 @@
 #include <QDebug>
 #include <QFile>
 #include "pc-controlpanel.h"
+#include "../config.h"
 
 
 int main( int argc, char ** argv )
@@ -12,9 +13,9 @@
     QTranslator translator;
     QLocale mylocale;
     QString langCode = mylocale.name();
-    if ( ! QFile::exists("/usr/local/share/pcbsd/i18n/pc-controlpanel_" + langCode + ".qm" ) )
+    if ( ! QFile::exists( PREFIX + "/share/pcbsd/i18n/pc-controlpanel_" + langCode + ".qm" ) )
       langCode.truncate(langCode.indexOf("_"));
-    translator.load( QString("pc-controlpanel_") + langCode, "/usr/local/share/pcbsd/i18n/" );
+    translator.load( QString("pc-controlpanel_") + langCode, PREFIX + "/share/pcbsd/i18n/" );
     a.installTranslator( &translator );
     qDebug() << "Locale:" << langCode;
 



More information about the Commits mailing list