[PC-BSD Commits] r2036 - in pcbsd/trunk: PCInstall installcd-overlay/usr/local/pcbsd/resources

svn at pcbsd.org svn at pcbsd.org
Sat Jun 7 06:11:06 PDT 2008


Author: melkor
Date: 2008-06-07 06:11:06 -0700 (Sat, 07 Jun 2008)
New Revision: 2036

Added:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/resources/license-ru.txt
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/resources/license-us.txt
Removed:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/resources/license.txt
Modified:
   pcbsd/trunk/PCInstall/pcinstall.ui.h
Log:

License localization. Also need to create license files for all lang or create symlinks to license-us.txt for they.


Modified: pcbsd/trunk/PCInstall/pcinstall.ui.h
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.ui.h	2008-06-07 12:58:01 UTC (rev 2035)
+++ pcbsd/trunk/PCInstall/pcinstall.ui.h	2008-06-07 13:11:06 UTC (rev 2036)
@@ -2971,8 +2971,13 @@
 {
     QString lic;
     QString line;
-    
-        QFile file( "//usr/local/pcbsd/resources/license.txt" );
+    QString tmp;
+
+    tmp = listBoxLang->currentText();
+    tmp.remove(0, tmp.find("(") + 1 );
+    tmp.truncate(tmp.find(")") );
+
+        QFile file( "//usr/local/pcbsd/resources/license-"&tmp&".txt" );
     if ( file.open( IO_ReadOnly ) ) {
 	QTextStream stream( &file );
 	QString line;

Added: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/resources/license-ru.txt

Copied: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/resources/license-us.txt (from rev 2035, pcbsd/trunk/installcd-overlay/usr/local/pcbsd/resources/license.txt)

Deleted: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/resources/license.txt



More information about the Commits mailing list