Browse code

update the script to include translated video and credit

Runa A. Sandvik authored on13/07/2011 15:41:32
Showing1 changed files
... ...
@@ -321,7 +321,11 @@ for file in $po ; do
321 321
 				# sure we include the German video
322 322
 				if [ $wmlfile = "tor-doc-windows.wml" ]
323 323
 				then
324
-					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"
324
+					orig_video=`grep src=\"https:\/\/media.torproject.org\/video\/2009-install-and-use-tor.ogv\" "$wmldir/$subdir/$lang/$wmlfile"`
325
+					new_video=`echo "<p>Das nachfolgende Video, wurde von <a href=\"http://www.sempervideo.de/\">SemperVideo</a> erstellt.</p> $orig_video"`
326
+				
327
+					sed -i "s@$orig_video@$new_video@" "$wmldir/$subdir/$lang/$wmlfile"
328
+					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"
325 329
 				fi
326 330
                         fi
327 331