po(formbuilder_setup): use a template to display the warning
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
0f89ef0579
commit
f58cb48f1f
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<p>
|
||||
<b>WARNING</b> this page must be written in <TMPL_VAR NAME="LANG">.
|
||||
</p>
|
Loading…
Reference in New Issue