Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix for RT #74664 #25

Merged
merged 1 commit into from

2 participants

@rainboxx

HTML::FormHandler::Widget::Field::RadioGroup didn't localize labels

@rainboxx rainboxx Fix for RT #74664
HTML::FormHandler::Widget::Field::RadioGroup didn't localize labels
ae2b20e
@gshank gshank merged commit a13cd95 into gshank:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 3, 2012
  1. @rainboxx

    Fix for RT #74664

    rainboxx authored
    HTML::FormHandler::Widget::Field::RadioGroup didn't localize labels
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/HTML/FormHandler/Widget/Field/RadioGroup.pm
View
4 lib/HTML/FormHandler/Widget/Field/RadioGroup.pm
@@ -22,7 +22,9 @@ sub render {
if $fif eq $value;
$output .= process_attrs($self->element_attributes($result));
$output .= ' />';
- $output .= $self->html_filter($option->{label}) . '</label><br />';
+ my $label = $option->{label};
+ $label = $self->_localize($label) if $self->localize_labels;
+ $output .= $self->html_filter($label) . '</label><br />';
$index++;
}
return $self->wrap_field( $result, $output );
Something went wrong with that request. Please try again.