[PC-BSD Commits] r7910 - pcbsd/current/src-qt4/pc-pfmanager

svn at pcbsd.org svn at pcbsd.org
Tue Oct 26 09:46:13 PDT 2010


Author: kris
Date: 2010-10-26 09:46:13 -0700 (Tue, 26 Oct 2010)
New Revision: 7910

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

Updated pc-pfmanager to use PREFIX / config.h



Modified: pcbsd/current/src-qt4/pc-pfmanager/main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-pfmanager/main.cpp	2010-10-26 16:44:45 UTC (rev 7909)
+++ pcbsd/current/src-qt4/pc-pfmanager/main.cpp	2010-10-26 16:46:13 UTC (rev 7910)
@@ -1,4 +1,3 @@
-
 #include <qapplication.h>
 #include <qtranslator.h>
 #include <QLocale>
@@ -6,6 +5,7 @@
 #include <QFile>
 #include <QDebug>
 #include "pfmanagerdlg.hpp"
+#include "../config.h"
 
 int main ( int argc, char **argv )
 {
@@ -14,9 +14,9 @@
     QLocale mylocale;
     QTranslator translator;
     QString langCode = mylocale.name();
-    if ( ! QFile::exists("/usr/local/share/pcbsd/i18n/PFManager_" + langCode + ".qm" ) )
+    if ( ! QFile::exists( PREFIX + "/share/pcbsd/i18n/PFManager_" + langCode + ".qm" ) )
      langCode.truncate(langCode.indexOf("_"));
-    translator.load( QString("PFManager_") + langCode, "/usr/local/share/pcbsd/i18n/" );
+    translator.load( QString("PFManager_") + langCode, PREFIX + "/share/pcbsd/i18n/" );
     app.installTranslator( &translator );
     qDebug() << "Locale:" << langCode;
 



More information about the Commits mailing list