Browse code

call validate.py before converting files

Runa A. Sandvik authored on 17/03/2011 18:35:47
Showing 1 changed files
... ...
@@ -61,6 +61,11 @@ po=`find $podir -regex '^'$podir'/.*/.*\.po' -type f`
61 61
 
62 62
 # For every wml, update po
63 63
 for file in $po ; do
64
+
65
+	# Validate input and write results to a log file
66
+	validate_script="`dirname $wmldir`/translation/tools/validate.py"
67
+	validate_log="`dirname $wmldir`/validate.log"
68
+	python "$validate_script" -i "$file" -l	"$validate_log"
64 69
 	
65 70
 	# Get the basename of the file we are dealing with
66 71
 	pofile=`basename $file`