po(formbuilder_setup): use a template to display the warning

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2009-01-02 12:27:10 +01:00
parent 0f89ef0579
commit f58cb48f1f
2 changed files with 6 additions and 5 deletions

View File

@ -447,11 +447,9 @@ sub formbuilder_setup (@) {
return unless (defined $form->field("do") && $form->field("do") eq "create");
$form->tmpl_param(
message => sprintf(
gettext('**WARNING: this page must be written in %s**'),
$config{po_master_language}{name})
);
my $template=template("pocreatepage.tmpl");
$template->param(LANG => $config{po_master_language}{name});
$form->tmpl_param(message => $template->output);
}

View File

@ -0,0 +1,3 @@
<p>
<b>WARNING</b> this page must be written in <TMPL_VAR NAME="LANG">.
</p>