From e0c611f580b71627522416fe8f7b4f2e6fe21588 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 22 Sep 2014 09:55:44 +0200 Subject: [PATCH] Bug 12740: Make the error message translatable Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt | 4 +++- tools/koha-news.pl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt index dda0738..c4a17d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -60,7 +60,9 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]
[% UNLESS ( add_form ) %] - [% IF (error_message) %]

[% error_message %]

[% END %] + [% IF error_message == 'title_missing' %] +
Error: Required news title missing!
+ [% END %] diff --git a/tools/koha-news.pl b/tools/koha-news.pl index 42dd149..1859deb 100755 --- a/tools/koha-news.pl +++ b/tools/koha-news.pl @@ -119,7 +119,7 @@ elsif ( $op eq 'add' ) { print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); } else { - print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl?error_message=ERROR:+Required+news+title+missing!"); + print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl?error_message=title_missing"); } } elsif ( $op eq 'edit' ) { -- 2.1.0