Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Translate labels in [form] tag.
  • Loading branch information
racke committed Sep 23, 2013
1 parent 1acf122 commit efad07b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/form.tag
Expand Up @@ -81,7 +81,7 @@ sub {
$Session->{form_series}->{$name} -= 1;
$Tag->tmp('series_part', $_->{part});
return $Tag->form({series => $name,
label => $_->{label},
label => errmsg($_->{label}),
part => $_->{part},
template => $opt->{template} || $_->{template}});
}
Expand Down Expand Up @@ -142,7 +142,7 @@ sub {
}

$Tag->tmp('series_part', $_->{part});
return $Tag->form({series => $name, label => $_->{label},
return $Tag->form({series => $name, label => errmsg($_->{label}),
part => $_->{part},
template => $opt->{template} || $_->{template}});
}
Expand All @@ -152,7 +152,7 @@ sub {
return;
}

push(@out_title, theme('form_title', $opt->{part}, $opt->{label}, $opt));
push(@out_title, theme('form_title', $opt->{part}, errmsg($opt->{label}), $opt));

if ($opt->{prepend}) {
push(@out_title, $opt->{prepend});
Expand Down Expand Up @@ -201,7 +201,7 @@ sub {
}

if ($elref->{label} =~ /\S/) {
$label = "$elref->{label}$append$opt->{appendlabel}";
$label = errmsg($elref->{label}) . "$append$opt->{appendlabel}";
}

my $error = $Tag->error({name => $elref->{name},
Expand Down

0 comments on commit efad07b

Please sign in to comment.