[tor-commits] r24377: {website} call validate.py before converting files (website/trunk)

Runa Sandvik runa.sandvik at gmail.com
Thu Mar 17 17:35:47 UTC 2011


Author: runa
Date: 2011-03-17 17:35:47 +0000 (Thu, 17 Mar 2011)
New Revision: 24377

Modified:
   website/trunk/po2wml.sh
Log:
call validate.py before converting files

Modified: website/trunk/po2wml.sh
===================================================================
--- website/trunk/po2wml.sh	2011-03-17 17:23:27 UTC (rev 24376)
+++ website/trunk/po2wml.sh	2011-03-17 17:35:47 UTC (rev 24377)
@@ -61,6 +61,11 @@
 
 # For every wml, update po
 for file in $po ; do
+
+	# Validate input and write results to a log file
+	validate_script="`dirname $wmldir`/translation/tools/validate.py"
+	validate_log="`dirname $wmldir`/validate.log"
+	python "$validate_script" -i "$file" -l	"$validate_log"
 	
 	# Get the basename of the file we are dealing with
 	pofile=`basename $file`



More information about the tor-commits mailing list