Author: runa Date: 2011-07-13 13:41:32 +0000 (Wed, 13 Jul 2011) New Revision: 24889
Modified: website/trunk/po2wml.sh Log: update the script to include translated video and credit
Modified: website/trunk/po2wml.sh =================================================================== --- website/trunk/po2wml.sh 2011-07-09 11:40:31 UTC (rev 24888) +++ website/trunk/po2wml.sh 2011-07-13 13:41:32 UTC (rev 24889) @@ -321,7 +321,11 @@ # sure we include the German video if [ $wmlfile = "tor-doc-windows.wml" ] then - sed -i "s@src="https://media.torproject.org/video/2009-install-and-use-tor.ogv%5C%22@src%5C..." "$wmldir/$subdir/$lang/$wmlfile" + orig_video=`grep src="https://media.torproject.org/video/2009-install-and-use-tor.ogv" "$wmldir/$subdir/$lang/$wmlfile"` + new_video=`echo "<p>Das nachfolgende Video, wurde von <a href="http://www.sempervideo.de/%5C%22%3ESemperVideo</a> erstellt.</p> $orig_video"` + + sed -i "s@$orig_video@$new_video@" "$wmldir/$subdir/$lang/$wmlfile" + sed -i "s@src="https://media.torproject.org/video/2009-install-and-use-tor.ogv%5C%22@src%5C..." "$wmldir/$subdir/$lang/$wmlfile" fi fi
tor-commits@lists.torproject.org