Author: runa Date: 2011-06-29 19:05:15 +0000 (Wed, 29 Jun 2011) New Revision: 24844
Modified: website/trunk/po2wml.sh Log: updated the script to include translated images for the overview page
Modified: website/trunk/po2wml.sh =================================================================== --- website/trunk/po2wml.sh 2011-06-29 18:33:07 UTC (rev 24843) +++ website/trunk/po2wml.sh 2011-06-29 19:05:15 UTC (rev 24844) @@ -251,6 +251,17 @@ echo '#include "foot.wmi"' >> "$wmldir/$subdir/$lang/$wmlfile" fi
+ # If the file is overview.wml, make sure we + # include the correct set of images + if [ $wmlfile = "overview.wml" ] && [[ $lang = "de" || $lang = "es" || $lang = "fr" || + $lang = "ja" || $lang = "nl" || $lang = "no" || $lang = "pl" || $lang = "ru" || + $lang = "zh" ]] + then + sed -i "s/htw1.png/htw1_$lang.png/" "$wmldir/$subdir/$lang/$wmlfile" + sed -i "s/htw2.png/htw2_$lang.png/" "$wmldir/$subdir/$lang/$wmlfile" + sed -i "s/htw3.png/htw3_$lang.png/" "$wmldir/$subdir/$lang/$wmlfile" + fi + # If the translation is Polish, include the # correct header, menu files and footer if [ $lang = "pl" ]
tor-commits@lists.torproject.org