From 49f4382324447c9935478e793f416a4118b81d4d 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 Signed-off-by: Tomas Cohen Arazi --- 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 dda073800d..c4a17d9630 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 42dd149042..1859deb665 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.39.5