remove translator comments from translated wml files
Runa A. Sandvik

Runa A. Sandvik commited on 2011-03-22 13:39:46
Zeige 1 geänderte Dateien mit 6 Einfügungen und 0 Löschungen.

... ...
@@ -110,6 +110,9 @@ for file in $po ; do
110 110
                         # Remove last three lines in file
111 111
 			sed -i -e :a -e '$d;N;2,3ba' -e 'P;D' "$wmldir/$subdir/$wmlfile"
112 112
 
113
+			# Remove lines that are translator comments
114
+			sed -i '/^<td># Translators:/ d' "$wmldir/$subdir/$wmlfile"
115
+
113 116
 			# If the file is mirrors.wml, include mirrors-table.wmi
114 117
 			if [ $wmlfile == "mirrors.wml" ]
115 118
 			then
... ...
@@ -167,6 +170,9 @@ for file in $po ; do
167 170
 			# Remove last three lines in file
168 171
 			sed -i -e :a -e '$d;N;2,3ba' -e 'P;D' "$wmldir/$subdir/$lang/$wmlfile"
169 172
 
173
+			# Remove lines that are translator comments
174
+			sed -i '/^<td># Translators:/ d' "$wmldir/$subdir/$lang/$wmlfile"
175
+
170 176
 			# If the file is an Arabic translation, include the
171 177
 			# right header, css, menu files and footer
172 178
 			if [ $lang = "ar" ]
173 179