[or-cvs] r19962: {translation} we do not want to convert english files (translation/trunk/tools/gsoc09)

runa at seul.org runa at seul.org
Thu Jul 9 16:12:45 UTC 2009


Author: runa
Date: 2009-07-09 12:12:45 -0400 (Thu, 09 Jul 2009)
New Revision: 19962

Modified:
   translation/trunk/tools/gsoc09/po2wml.sh
Log:
we do not want to convert english files

Modified: translation/trunk/tools/gsoc09/po2wml.sh
===================================================================
--- translation/trunk/tools/gsoc09/po2wml.sh	2009-07-09 13:50:43 UTC (rev 19961)
+++ translation/trunk/tools/gsoc09/po2wml.sh	2009-07-09 16:12:45 UTC (rev 19962)
@@ -68,8 +68,13 @@
 	# The translated document is written if 80% or more of the po
 	# file has been translated. Use '-k 21' to set this
 	# number down to 21%.
-	po4a-translate -f wml -m "$endir/$wmlfile" -p "$file" -l "$wmldir/$indir/$wmlfile" --master-charset utf-8 -L utf-8
 
+	# Also, we don't want to convert english po back to english wml
+	if [ "$indir" != "en" ]
+	then
+		po4a-translate -f wml -m "$endir/$wmlfile" -p "$file" -l "$wmldir/$indir/$wmlfile" --master-charset utf-8 -L utf-8
+	fi
+
 	# If the file did not exist before running
 	# po4a-translate but it does exist now, add the file to
 	# the repository.



More information about the tor-commits mailing list