Author: ks156
Date: 2008-12-12 11:13:59 +0100 (Fri, 12 Dec 2008)
New Revision: 3063

Modified:
   
software_suite_v2/software/development_tools/gadget_packer/trunk/tux_gadget_packer
Log:
* Added functions to detect the languages of the po and html files.
* Fixed typo


Modified: 
software_suite_v2/software/development_tools/gadget_packer/trunk/tux_gadget_packer
===================================================================
--- 
software_suite_v2/software/development_tools/gadget_packer/trunk/tux_gadget_packer
  2008-12-12 10:13:47 UTC (rev 3062)
+++ 
software_suite_v2/software/development_tools/gadget_packer/trunk/tux_gadget_packer
  2008-12-12 10:13:59 UTC (rev 3063)
@@ -51,12 +51,12 @@
     fi
     echo $line |grep "type" >/dev/null
     if [ $? == 0 ]; then
-       printf ">  Author : "
+       printf ">  Type : "
        echo $line |cut -f 2 -d "=" |cut -f 1 -d "/"
     fi
     echo $line |grep "defaultValue" >/dev/null
     if [ $? == 0 ]; then
-       printf ">  Version : "
+       printf ">  Default : "
        echo $line |cut -f 2 -d "=" |cut -f 1 -d "/"
     fi
 }
@@ -79,6 +79,20 @@
     fi
 }
 
+detect_po () {
+    for i in `find $DIR/resources/*.po`; do
+       FILE=`echo ${i%%.po} |sed 's/^.*\///g'`
+       printf "$FILE "
+    done
+}
+
+detect_help () {
+    for i in `find $DIR/resources/help_*.html`; do
+       FILE=`echo ${i%%.html} |sed 's/^.*\///g' |sed 's/help_//g'`
+       printf "$FILE "
+    done
+}
+
 #### Start of the script
 #>>> Header
 echo "TuxDroid gadgets compiler"
@@ -133,6 +147,9 @@
     printf ">  no translation file found $WARNING"
 else
     printf ">  translation file found $DETECTED"
+    printf ">> extra languages : "
+    detect_po
+    printf "\n"
 fi
 
 # help files
@@ -140,6 +157,9 @@
     printf ">  no help file found $WARNING"
 else
     printf ">  help file found $DETECTED"
+    printf ">> extra languages : "
+    detect_help
+    printf "\n"
 fi
 echo ""
 


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to