[or-cvs] r20152: {translation} we can parse versions.wmi for custom tags (translation/trunk/tools/gsoc09)
runa at seul.org
runa at seul.org
Sun Jul 26 19:37:02 UTC 2009
Author: runa
Date: 2009-07-26 15:37:02 -0400 (Sun, 26 Jul 2009)
New Revision: 20152
Removed:
translation/trunk/tools/gsoc09/customtags.txt
Modified:
translation/trunk/tools/gsoc09/po2wml.sh
translation/trunk/tools/gsoc09/wml2po.sh
Log:
we can parse versions.wmi for custom tags
Deleted: translation/trunk/tools/gsoc09/customtags.txt
===================================================================
--- translation/trunk/tools/gsoc09/customtags.txt 2009-07-26 16:28:42 UTC (rev 20151)
+++ translation/trunk/tools/gsoc09/customtags.txt 2009-07-26 19:37:02 UTC (rev 20152)
@@ -1 +0,0 @@
-<version-rpm4-stable> <version-rpm4-alpha> <version-rpm5-stable> <version-rpm5-alpha> <version-rpmfc-stable> <version-rpmfc-alpha> <version-rpmsuse-stable> <version-rpmsuse-alpha> <version-stable> <version-alpha> <version-win32-bundle-stable> <version-win32-bundle-alpha> <version-torbrowser-tor> <version-osx-bundle-stable> <version-osx-bundle-alpha> <version-oldosx-bundle-stable> <version-oldosx-bundle-alpha> <version-win32-stable> <version-win32-alpha> <version-osx-stable> <version-osx-alpha> <version-oldosx-stable> <version-oldosx-alpha> <svnsandbox> <svnwebsite> <package-win32-bundle-stable-sig> <version-torbrowserbundle> <version-torimbrowserbundle> <version-torbrowser-vidalia> <version-torbrowser-tor-components> <version-torbrowser-firefox> <version-torbrowser-torbutton> <version-torbrowser-polipo> <version-torbrowser-pidgin> <version-torbrowser-otr> <version-torbutton> <input> <hr> <br> <img>
Modified: translation/trunk/tools/gsoc09/po2wml.sh
===================================================================
--- translation/trunk/tools/gsoc09/po2wml.sh 2009-07-26 16:28:42 UTC (rev 20151)
+++ translation/trunk/tools/gsoc09/po2wml.sh 2009-07-26 19:37:02 UTC (rev 20152)
@@ -17,6 +17,11 @@
# for example "/home/runa/tor/translation/projects/website"
podir=""
+# A lot of the wml files have custom tags. These tags have been defined
+# in website/include/versions.wmi. I have also added the tags that
+# people usually forget to close.
+customtag=`echo $(cat "$wmldir/include/versions.wmi" | awk '{ printf "<%s> " , $2 }' | sed 's/<>//g') "<input> <hr> <br> <img>"`
+
# 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`
Modified: translation/trunk/tools/gsoc09/wml2po.sh
===================================================================
--- translation/trunk/tools/gsoc09/wml2po.sh 2009-07-26 16:28:42 UTC (rev 20151)
+++ translation/trunk/tools/gsoc09/wml2po.sh 2009-07-26 19:37:02 UTC (rev 20152)
@@ -26,9 +26,10 @@
# for example "The Tor Project, Inc"
copyright=""
-# 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`
+# A lot of the wml files have custom tags. These tags have been defined
+# in website/include/versions.wmi. I have also added the tags that
+# people usually forget to close.
+customtag=`echo $(cat "$wmldir/include/versions.wmi" | awk '{ printf "<%s> " , $2 }' | sed 's/<>//g') "<input> <hr> <br> <img>"`
# 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
More information about the tor-commits
mailing list