From 29d061bf03c489ba019c029e70e1fcb06acb0015 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Mon, 9 Jul 2012 17:45:11 +0200 Subject: [PATCH] Bug 8392: Avoid having an untranslatable age range Currently, error message reports an age range in English. For example '0 to 17'. With this patch, the 'to' is not in the .pl file anymore. Ruth could you sign-off this fix? Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- members/memberentry.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 41ce66d773..f630c15f73 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -168,7 +168,7 @@ [% END %] [% IF ( ERROR_age_limitations ) %]
  • Patron's age is incorrect for their category. - Ages allowed are [% ERROR_age_limitations %].
  • + Ages allowed are [% age_low %]-[% age_high %]. [% END %] [% IF ( ERROR_branch ) %]
  • Library is invalid.
  • diff --git a/members/memberentry.pl b/members/memberentry.pl index c58abc2a23..ebb4900ca2 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -272,7 +272,8 @@ if ($op eq 'save' || $op eq 'insert'){ my ($low,$high) = ($borrowercategory->{'dateofbirthrequired'}, $borrowercategory->{'upperagelimit'}); if (($high && ($age > $high)) or ($age < $low)) { push @errors, 'ERROR_age_limitations'; - $template->param('ERROR_age_limitations' => "$low to $high"); + $template->param( age_low => $low); + $template->param( age_high => $high); } } -- 2.39.5