[PC-BSD Commits] r5039 - pbibuild/pbi-source/PBIsource

svn at pcbsd.org svn at pcbsd.org
Tue Nov 17 07:48:48 PST 2009


Author: kris
Date: 2009-11-17 07:48:48 -0800 (Tue, 17 Nov 2009)
New Revision: 5039

Modified:
   pbibuild/pbi-source/PBIsource/main.cpp
Log:

Fixed i18n loading in PBI



Modified: pbibuild/pbi-source/PBIsource/main.cpp
===================================================================
--- pbibuild/pbi-source/PBIsource/main.cpp	2009-11-17 15:46:35 UTC (rev 5038)
+++ pbibuild/pbi-source/PBIsource/main.cpp	2009-11-17 15:48:48 UTC (rev 5039)
@@ -11,9 +11,9 @@
     QTranslator translator( 0 );
     QLocale mylocale;
     QString langCode = mylocale.name();
-    if ( QFile::exists("./i18n/PBI_" + langCode + ".qm" ) )
+    if ( ! QFile::exists("./PBI_" + langCode + ".qm" ) )
       langCode.truncate(langCode.indexOf("_"));
-    translator.load( QString("PBI_") + langCode, "./i18n/" );
+    translator.load( QString("PBI_") + langCode, "." );
     a.installTranslator( &translator );
     qDebug() << "Locale:" << langCode;
 



More information about the Commits mailing list