implements fragment ok_button_fragment {
if (grep { $_ eq 'ok' } $_{viewport}->accept_events) {
arg 'event_id' => event_id 'ok';
- arg 'label' => $_{viewport}->ok_label;
+ arg 'label' => localized $_{viewport}->ok_label;
render 'ok_button';
}
};
implements fragment apply_button_fragment {
if (grep { $_ eq 'apply' } $_{viewport}->accept_events) {
arg 'event_id' => event_id 'apply';
- arg 'label' => $_{viewport}->apply_label;
+ arg 'label' => localized $_{viewport}->apply_label;
render 'apply_button';
}
};
implements fragment cancel_button_fragment {
if (grep { $_ eq 'close' } $_{viewport}->accept_events) {
arg 'event_id' => event_id 'close';
- arg 'label' => $_{viewport}->close_label;
+ arg 'label' => localized $_{viewport}->close_label;
render 'cancel_button';
}
};
before fragment widget {
arg uri => $_{viewport}->uri;
- arg label => $_{viewport}->label;
+ arg label => localized $_{viewport}->label;
};
__PACKAGE__->meta->make_immutable;
};
implements fragment header_cell {
- arg label => $_{labels}->{$_};
+ arg label => localized $_{labels}->{$_};
};
__PACKAGE__->meta->make_immutable;
implements fragment label_fragment {
if (my $label = $_{viewport}->label) {
- arg label => $label;
+ arg label => localized $label;
render 'label';
}
};
before fragment widget {
- arg 'label' => $_{viewport}->label;
+ arg 'label' => localized $_{viewport}->label;
};
implements fragment list {
};
implements fragment item {
- arg 'name' => $_;
+ arg 'name' => localized $_;
};
__PACKAGE__->meta->make_immutable;
before fragment widget {
- arg 'label' => $_{viewport}->label;
+ arg 'label' => localized $_{viewport}->label;
};
implements fragment list {
};
implements fragment item {
- arg 'name' => $_;
+ arg 'name' => localized $_;
};
__PACKAGE__->meta->make_immutable;
implements fragment message_fragment {
if (my $message = $_{viewport}->message) {
- arg message => $message;
+ arg message => localized $message;
render 'message';
}
};
implements fragment check_field {
arg 'field_id' => event_id 'check_value';
arg 'field_name' => event_id 'check_value';
- arg 'label' => 'Confirm:';
+ arg 'label' => localized 'Confirm:';
render 'field'; #piggyback!
};
implements fragment check_label {
if (my $label = $_{viewport}->check_label) {
- arg label => $label;
+ arg label => localized $label;
render 'label';
}
};
implements fragment last_page {
arg page_uri => event_uri { page => $_{pager_obj}->last_page };
- arg page_name => 'Last';
+ arg page_name => localized 'Last';
render 'named_page';
};
implements fragment next_page {
- arg page_name => 'Next';
+ arg page_name => localized 'Next';
if (my $page = $_{pager_obj}->next_page) {
arg page_uri => event_uri { page => $page };
render 'named_page';
};
implements fragment previous_page {
- arg page_name => 'Previous';
+ arg page_name => localized 'Previous';
if (my $page = $_{pager_obj}->previous_page) {
arg page_uri => event_uri { page => $page };
render 'named_page';
before fragment widget {
- arg 'label' => $_{viewport}->label;
+ arg 'label' => localized $_{viewport}->label;
};
implements fragment list {
};
implements fragment item {
- arg 'name' => $_;
+ arg 'name' => localized $_;
};
__PACKAGE__->meta->make_immutable;