From f58cb48f1f5b718886109642ec2caed45709b5e7 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Fri, 2 Jan 2009 12:27:10 +0100 Subject: po(formbuilder_setup): use a template to display the warning Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 8 +++----- templates/pocreatepage.tmpl | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 templates/pocreatepage.tmpl diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 2f43c4983..c8b5e8fde 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -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); } diff --git a/templates/pocreatepage.tmpl b/templates/pocreatepage.tmpl new file mode 100644 index 000000000..96c8fdd78 --- /dev/null +++ b/templates/pocreatepage.tmpl @@ -0,0 +1,3 @@ +

+WARNING this page must be written in . +

\ No newline at end of file -- cgit v1.2.3