[tor-commits] r24407: {website} remove translator comments from translated wml files (website/trunk)
Runa Sandvik
runa.sandvik at gmail.com
Tue Mar 22 12:39:46 UTC 2011
Author: runa
Date: 2011-03-22 12:39:46 +0000 (Tue, 22 Mar 2011)
New Revision: 24407
Modified:
website/trunk/po2wml.sh
Log:
remove translator comments from translated wml files
Modified: website/trunk/po2wml.sh
===================================================================
--- website/trunk/po2wml.sh 2011-03-22 02:48:17 UTC (rev 24406)
+++ website/trunk/po2wml.sh 2011-03-22 12:39:46 UTC (rev 24407)
@@ -110,6 +110,9 @@
# Remove last three lines in file
sed -i -e :a -e '$d;N;2,3ba' -e 'P;D' "$wmldir/$subdir/$wmlfile"
+ # Remove lines that are translator comments
+ sed -i '/^<td># Translators:/ d' "$wmldir/$subdir/$wmlfile"
+
# If the file is mirrors.wml, include mirrors-table.wmi
if [ $wmlfile == "mirrors.wml" ]
then
@@ -167,6 +170,9 @@
# Remove last three lines in file
sed -i -e :a -e '$d;N;2,3ba' -e 'P;D' "$wmldir/$subdir/$lang/$wmlfile"
+ # Remove lines that are translator comments
+ sed -i '/^<td># Translators:/ d' "$wmldir/$subdir/$lang/$wmlfile"
+
# If the file is an Arabic translation, include the
# right header, css, menu files and footer
if [ $lang = "ar" ]
More information about the tor-commits
mailing list