[PC-BSD Commits] r12288 - pcbsd/current/src-qt4/pc-xgui

svn at pcbsd.org svn at pcbsd.org
Thu Aug 25 07:42:51 PDT 2011


Author: kris
Date: 2011-08-25 07:42:51 -0700 (Thu, 25 Aug 2011)
New Revision: 12288

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

Fixed loading translation files



Modified: pcbsd/current/src-qt4/pc-xgui/main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-xgui/main.cpp	2011-08-25 14:35:03 UTC (rev 12287)
+++ pcbsd/current/src-qt4/pc-xgui/main.cpp	2011-08-25 14:42:51 UTC (rev 12288)
@@ -15,9 +15,9 @@
     QTranslator translator;
     QLocale mylocale;
     QString langCode = mylocale.name();
-    if ( ! QFile::exists(PREFIX + "/share/apps/pcbsd/i18n/XGUISource_" + langCode + ".qm" ) )
+    if ( ! QFile::exists(PREFIX + "/share/pcbsd/i18n/XGUISource_" + langCode + ".qm" ) )
       langCode.truncate(langCode.indexOf("_"));
-    translator.load( QString("XGUISource_") + langCode, PREFIX + "/share/apps/pcbsd/i18n/" );
+    translator.load( QString("XGUISource_") + langCode, PREFIX + "/share/pcbsd/i18n/" );
     a.installTranslator( &translator );
     qDebug() << "Locale:" << langCode;
 



More information about the Commits mailing list