From: Frédéric Demians Date: Mon, 9 Jul 2012 15:45:11 +0000 (+0200) Subject: Bug 8392: Avoid having an untranslatable age range X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=b84c772e1be1f3744a1753d13debf47e5245c251;p=koha.git 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 --- 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); } }