From b84c772e1be1f3744a1753d13debf47e5245c251 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 --- .../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 1f28b04d40..bd62f58084 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 0cf548503b..2a391101a3 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