summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-02 12:27:10 +0100
committerintrigeri <intrigeri@boum.org>2009-01-02 12:27:10 +0100
commitf58cb48f1f5b718886109642ec2caed45709b5e7 (patch)
treea38a17ebcf89cf8f69e97f41b373f298db4d8139 /IkiWiki/Plugin
parent0f89ef0579f2bbc385c78a4c22a2a9c44d99396a (diff)
po(formbuilder_setup): use a template to display the warning
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm8
1 files changed, 3 insertions, 5 deletions
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);
}