[patch] Let wml::debian::translation-check line be anywhere
Hi,
the wml::debian::translation-check currently prints its output where it
is called from; this may give strange results on some files if this line
appears at the top of the file, which is surely the most intuitive
location.
This patch diverts translation-check's output into a buffer which must
then be declared in all templates (I may have forgotten some).
I did not commit it since I am not sure everybody likes their template
being changed without agreement.
Denis
Index: consultant.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/consultant.wml,v
retrieving revision 1.42
diff -u -r1.42 consultant.wml
--- consultant.wml 2001/07/02 23:22:30 1.42
+++ consultant.wml 2001/08/31 12:54:06
@@ -57,6 +57,8 @@
#use wml::debian::basic SUMMARY="$(SUMMARY)" title="<consultanttitle>"
#use wml::debian::languages
+{#check_trans#}
+
{#mainbody#}
<hrline>
Index: ddp.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/ddp.wml,v
retrieving revision 1.30
diff -u -r1.30 ddp.wml
--- ddp.wml 2001/08/06 12:06:53 1.30
+++ ddp.wml 2001/08/31 12:54:06
@@ -30,6 +30,8 @@
[ZH:Please send all comments, criticisms and suggestions about these web pages to our <a href="mailto:debian-doc@lists.debian.org">mailing list</a>.:]
</define-tag>
+{#check_trans#}
+
<ifeq "$(NOHEADER)" "" "
<H1>$(title)</H1>
">
Index: event.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/event.wml,v
retrieving revision 1.56
diff -u -r1.56 event.wml
--- event.wml 2001/05/19 16:52:54 1.56
+++ event.wml 2001/08/31 12:54:06
@@ -2,6 +2,8 @@
#use wml::debian::basic title="<eventtitle>"
#use wml::debian::languages
+{#check_trans#}
+
<hrline>
<H2><pagetitle></H2>
Index: mainpage.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/mainpage.wml,v
retrieving revision 1.10
diff -u -r1.10 mainpage.wml
--- mainpage.wml 2001/07/28 22:03:14 1.10
+++ mainpage.wml 2001/08/31 12:54:06
@@ -111,6 +111,8 @@
<TD valign="TOP">
<BR>
+{#check_trans#}
+
{#mainbody#}
</TD>
Index: news.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/news.wml,v
retrieving revision 1.27
diff -u -r1.27 news.wml
--- news.wml 2001/08/04 09:24:41 1.27
+++ news.wml 2001/08/31 12:54:06
@@ -42,6 +42,8 @@
# DO NOT translate anything below here. If you feel there is something that needs
# to be changed write to debian-www first.
+{#check_trans#}
+
<H2><pagetitle></H2>
<P><tt><:= newsdate('<release_date>') :></tt>
Index: past_event.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/past_event.wml,v
retrieving revision 1.13
diff -u -r1.13 past_event.wml
--- past_event.wml 2001/05/19 16:52:54 1.13
+++ past_event.wml 2001/08/31 12:54:06
@@ -3,6 +3,8 @@
# the title should probably be different, <pasteventtitle> or something
#use wml::debian::languages
+{#check_trans#}
+
<hrline>
<H2><pagetitle></H2>
Index: template.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/template.wml,v
retrieving revision 1.11
diff -u -r1.11 template.wml
--- template.wml 2000/11/15 21:16:32 1.11
+++ template.wml 2001/08/31 12:54:06
@@ -4,6 +4,8 @@
#use wml::debian::basic SUMMARY="$(SUMMARY)"
#use wml::debian::languages
+{#check_trans#}
+
<ifeq "$(NOHEADER)" "" "
<H1>$(title)</H1>
">
Index: translation-check.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/translation-check.wml,v
retrieving revision 1.57
diff -u -r1.57 translation-check.wml
--- translation-check.wml 2001/08/29 12:57:03 1.57
+++ translation-check.wml 2001/08/31 12:54:06
@@ -248,7 +248,9 @@
</perl>
# The call to the subroutine is done here
-<: check_translation ("$(translation)","$WML_SRC_FILENAME","$(original)","$(mindelta)","$(maxdelta)") :>
+{#check_trans#:\
+<: check_translation ("$(translation)","$WML_SRC_FILENAME","$(original)","$(mindelta)","$(maxdelta)") :>\
+:#check_trans#}
# This template was originally made by Javier Fernández-Sanguino, described
# in a proposal made around last week of August 1999. Please check the
Index: votebar.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/votebar.wml,v
retrieving revision 1.71
diff -u -r1.71 votebar.wml
--- votebar.wml 2001/08/06 12:48:06 1.71
+++ votebar.wml 2001/08/31 12:54:07
@@ -465,6 +465,8 @@
<TD valign="TOP">
<BR>
+ {#check_trans#}
+
{#mainbody#}
</TD>
Reply to: