[or-cvs] r19033: {torbutton} Change mkmoz script to work with arbitrary new countries. (torbutton/trunk/trans_tools)

mikeperry at seul.org mikeperry at seul.org
Mon Mar 16 03:52:58 UTC 2009


Author: mikeperry
Date: 2009-03-15 23:52:58 -0400 (Sun, 15 Mar 2009)
New Revision: 19033

Modified:
   torbutton/trunk/trans_tools/mkmoz.sh
Log:

Change mkmoz script to work with arbitrary new countries.



Modified: torbutton/trunk/trans_tools/mkmoz.sh
===================================================================
--- torbutton/trunk/trans_tools/mkmoz.sh	2009-03-16 03:51:00 UTC (rev 19032)
+++ torbutton/trunk/trans_tools/mkmoz.sh	2009-03-16 03:52:58 UTC (rev 19033)
@@ -3,8 +3,8 @@
 
 LOCALEDIR="../src/chrome/locale"
 
-directories="ar de-DE es hr-HR nl-NL pt-BR sl-SI de-AT el-GR fa-IR it-IT pl-PL zh-CN de-CH fr-FR ru zh-TW"
 poDir="pootle" 
+directories="`ls -1 ./$poDir|tr _ -`"
 mozDir="moz"
 input="en-US"
 template="torbutton.dtd"
@@ -12,7 +12,9 @@
 for dir in $directories
 do
     pootleDir="`echo $dir|tr - _`";
+    echo "$pootleDir"
     mkdir -p $mozDir/$dir/
     po2moz -i $poDir/$pootleDir/ -t ${LOCALEDIR}/${input}/ -o $mozDir/$dir/ 
+    #po2moz -i $poDir/$pootleDir/ -t pootle/templates/ -o $mozDir/$dir/ 
 done
 



More information about the tor-commits mailing list