[PC-BSD Commits] r2042 - pcbsd/trunk/PCInstall
svn at pcbsd.org
svn at pcbsd.org
Sat Jun 7 11:06:55 PDT 2008
Author: melkor
Date: 2008-06-07 11:06:54 -0700 (Sat, 07 Jun 2008)
New Revision: 2042
Modified:
pcbsd/trunk/PCInstall/pcinstall.ui.h
Log:
License localization: Dont need symlinks now
Modified: pcbsd/trunk/PCInstall/pcinstall.ui.h
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.ui.h 2008-06-07 17:17:37 UTC (rev 2041)
+++ pcbsd/trunk/PCInstall/pcinstall.ui.h 2008-06-07 18:06:54 UTC (rev 2042)
@@ -2976,8 +2976,11 @@
tmp = listBoxLang->currentText();
tmp.remove(0, tmp.find("(") + 1 );
tmp.truncate(tmp.find(")") );
-
- QFile file( "//usr/local/pcbsd/resources/license-"+tmp+".txt" );
+ tmp="//usr/local/pcbsd/resources/license-"+tmp+".txt";
+
+ if (!QFile::exists(tmp))
+ tmp="//usr/local/pcbsd/resources/license-us.txt";
+ QFile file(tmp);
if ( file.open( IO_ReadOnly ) ) {
QTextStream stream( &file );
QString line;
More information about the Commits
mailing list