first wave of i18n fixes

This commit is contained in:
Colin Kuskie 2006-01-15 00:58:33 +00:00
parent b22cc241c0
commit 16b0edfb6b
4 changed files with 14 additions and 9 deletions

View file

@ -68,7 +68,8 @@ Renders a button.
sub toHtml {
my $self = shift;
my $value = $self->fixQuotes($self->get("value"));
$self->get("extras") ||= 'onclick="this.value=\''.WebGUI::International::get(452).'\'"';
my $i18n = WebGUI::International->new($self->session);
$self->get("extras") ||= 'onclick="this.value=\''.$i18n->get(452).'\'"';
my $html = '<input type="submit" ';
$html .= 'name="'.$self->get("name").'" ' if ($self->get("name"));
$html .= 'id="'.$self->{id}.'" ' unless ($self->{id} eq "_formId");