[or-cvs] r20127: {translation} can now work with custom tags (translation/trunk/tools/gsoc09)

runa at seul.org runa at seul.org
Fri Jul 24 09:38:22 UTC 2009

Author: runa
Date: 2009-07-24 05:38:22 -0400 (Fri, 24 Jul 2009)
New Revision: 20127

can now work with custom tags

Modified: translation/trunk/tools/gsoc09/po2wml.sh
--- translation/trunk/tools/gsoc09/po2wml.sh	2009-07-24 09:11:34 UTC (rev 20126)
+++ translation/trunk/tools/gsoc09/po2wml.sh	2009-07-24 09:38:22 UTC (rev 20127)
@@ -17,6 +17,15 @@
 # for example "/home/runa/tor/translation/projects/website"
+# A lot of the wml files have custom tags. We need to specify every
+# single tag. This is done in the file customtags.txt
+customtag=`cat customtags.txt`
+# We also need to use the nodefault option of po4a; space separated list
+# of tags that the module should not try to set by default in any
+# category. For now, we only need the input tag.
 ### end config ###
 # Create a lockfile to make sure that only one instance of the script
@@ -69,7 +78,7 @@
 	# Also, we don't want to convert english po back to english wml
 	if [ "$indir" != "en" ]
-		po4a-translate -f wml -m "$endir/$wmlfile" -p "$file" -l "$wmldir/$indir/$indir-$wmlfile" --master-charset utf-8 -L utf-8
+		po4a-translate -f wml -m "$endir/$wmlfile" -p "$file" -l "$wmldir/$indir/$indir-$wmlfile" --master-charset utf-8 -L utf-8 -o customtag="$customtag" -o nodefault="$nodefault"
 	# Check to see if the file was written

More information about the tor-commits mailing list