[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] r24889: {website} update the script to include translated video and credit (website/trunk)



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\"@src\=\"https://media.torproject.org/video/2011-install-and-use-tor-de.mp4@"; "$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/\";>SemperVideo</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\"@src\=\"https://media.torproject.org/video/2011-install-and-use-tor-de.ogv\"@"; "$wmldir/$subdir/$lang/$wmlfile"
 				fi
                         fi
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits