__PACKAGE__->make_sorted(
ONLY => [ qw(list) ],
- package_name => $::locale->text('Package name'),
- type => $::locale->text('Execution type'),
- active => $::locale->text('Active'),
- cron_spec => $::locale->text('Execution schedule'),
- last_run_at => $::locale->text('Last run at'),
- next_run_at => $::locale->text('Next run at'),
+ package_name => 'Package name',
+ type => 'Execution type',
+ active => 'Active',
+ cron_spec => 'Execution schedule',
+ last_run_at => 'Last run at',
+ next_run_at => 'Next run at',
);
#
__PACKAGE__->make_sorted(
ONLY => [ qw(list) ],
- package_name => $::locale->text('Package name'),
- run_at => $::locale->text('Run at'),
- status => $::locale->text('Execution status'),
- result => $::locale->text('Result'),
- error => $::locale->text('Error'),
+ package_name => 'Package name',
+ run_at => 'Run at',
+ status => 'Execution status',
+ result => 'Result',
+ error => 'Error',
);
#
layout helper's C<sortable_table_header>. Does not have a default
value.
+Note that this string must be the untranslated English version of the
+string. The titles will be translated whenever they're requested.
+
=item * C<model>
Optional. The name of a Rose database model this sort index refers
my $by_spec = $sort_spec->{$by};
my %current_sort_params = $controller->get_current_sort_params;
my ($image, $new_dir) = ('', $current_sort_params{dir});
- my $title = delete($params{title}) || $by_spec->{title};
+ my $title = delete($params{title}) || $::locale->text($by_spec->{title});
if ($current_sort_params{by} eq $by) {
my $current_dir = $current_sort_params{dir} ? 'up' : 'down';