[PC-BSD Commits] r7909 - pcbsd/current/src-qt4/pc-pbigui

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


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

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

Updated pc-pbigui to use PREFIX / config.h



Modified: pcbsd/current/src-qt4/pc-pbigui/main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-pbigui/main.cpp	2010-10-26 16:43:45 UTC (rev 7908)
+++ pcbsd/current/src-qt4/pc-pbigui/main.cpp	2010-10-26 16:44:45 UTC (rev 7909)
@@ -3,6 +3,7 @@
 #include <qlocale.h>
 #include <QDebug>
 #include "pbi.h"
+#include "../config.h"
 
 int main( int argc, char ** argv )
 {
@@ -11,9 +12,9 @@
     QTranslator translator( 0 );
     QLocale mylocale;
     QString langCode = mylocale.name();
-    if ( ! QFile::exists("/usr/local/share/pcbsd/i18n/PBI_" + langCode + ".qm" ) )
+    if ( ! QFile::exists( PREFIX + "/share/pcbsd/i18n/PBI_" + langCode + ".qm" ) )
       langCode.truncate(langCode.indexOf("_"));
-    translator.load( QString("PBI_") + langCode, "/usr/local/share/pcbsd/i18n/" );
+    translator.load( QString("PBI_") + langCode, PREFIX + "/share/pcbsd/i18n/" );
     a.installTranslator( &translator );
     qDebug() << "Locale:" << langCode;
 



More information about the Commits mailing list