[PC-BSD Commits] r998 - in pcbsd/trunk: PBIsource PBItext

svn at pcbsd.org svn at pcbsd.org
Wed Dec 12 05:27:55 PST 2007


Author: kris
Date: 2007-12-12 05:27:54 -0800 (Wed, 12 Dec 2007)
New Revision: 998

Modified:
   pcbsd/trunk/PBIsource/pbi.ui.h
   pcbsd/trunk/PBItext/main.cpp
Log:

Fixes to the PBI installer, so that the LANG variable gets set based on the
users KDE language settings automatically. This should ensure that GTK and
other non-KDE apps appear in the users local language. 



Modified: pcbsd/trunk/PBIsource/pbi.ui.h
===================================================================
--- pcbsd/trunk/PBIsource/pbi.ui.h	2007-12-11 22:54:49 UTC (rev 997)
+++ pcbsd/trunk/PBIsource/pbi.ui.h	2007-12-12 13:27:54 UTC (rev 998)
@@ -544,6 +544,8 @@
              stream2 << "#!/bin/sh\n";
              stream2 << "# Auto-Generated by PC-BSD\n";
              stream2 << "PATH=\"/Programs/" + ProgDirName + "/bin:$PATH\"; export PATH\n";     
+             stream2 << "LANG=\"`grep ^Language= ~/.kde/share/config/kdeglobals | cut -d "=" -f2`\"; export LANG\n";     
+
              if ( LibDir == "Auto")
 	{
 	     stream2 << "LD_LIBRARY_PATH=\"/Programs/" + ProgDirName + "/autolibs/\" ; export LD_LIBRARY_PATH\n";

Modified: pcbsd/trunk/PBItext/main.cpp
===================================================================
--- pcbsd/trunk/PBItext/main.cpp	2007-12-11 22:54:49 UTC (rev 997)
+++ pcbsd/trunk/PBItext/main.cpp	2007-12-12 13:27:54 UTC (rev 998)
@@ -502,6 +502,8 @@
              stream2 << "#!/bin/sh\n";
              stream2 << "# Auto-Generated by PC-BSD\n";
              stream2 << "PATH=\"/Programs/" + ProgDirName + "/bin:$PATH\"; export PATH\n";     
+	     stream2 << "LANG=\"`grep ^Language= ~/.kde/share/config/kdeglobals | cut -d "=" -f2`\"; export LANG\n";
+
              if ( LibDir == "Auto")
 	{
 	     stream2 << "LD_LIBRARY_PATH=\"/Programs/" + ProgDirName + "/autolibs/\" ; export LD_LIBRARY_PATH\n";



More information about the Commits mailing list