Revision 60d0f05f
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/SimpleSystemSetting.pm | ||
---|---|---|
64 | 64 |
}, |
65 | 65 |
}, |
66 | 66 |
|
67 |
language => { |
|
68 |
# Make locales.pl happy: $self->render("simple_system_setting/_language_form") |
|
69 |
class => 'Language', |
|
70 |
titles => { |
|
71 |
list => t8('Languages'), |
|
72 |
add => t8('Add language'), |
|
73 |
edit => t8('Edit language'), |
|
74 |
}, |
|
75 |
list_attributes => [ |
|
76 |
{ method => 'description', title => t8('Description'), }, |
|
77 |
{ method => 'template_code', title => t8('Template Code'), }, |
|
78 |
{ method => 'article_code', title => t8('Article Code'), }, |
|
79 |
{ title => t8('Number Format'), formatter => sub { $_[0]->output_numberformat || t8('use program settings') } }, |
|
80 |
{ title => t8('Date Format'), formatter => sub { $_[0]->output_dateformat || t8('use program settings') } }, |
|
81 |
{ title => t8('Long Dates'), formatter => sub { $_[0]->output_longdates ? t8('yes') : t8('no') } }, |
|
82 |
], |
|
83 |
}, |
|
84 |
|
|
67 | 85 |
part_classification => { |
68 | 86 |
# Make locales.pl happy: $self->render("simple_system_setting/_part_classification_form") |
69 | 87 |
class => 'PartClassification', |
... | ... | |
384 | 402 |
$self->{valid_names} = \@SL::DB::RequirementSpecStatus::valid_names; |
385 | 403 |
} |
386 | 404 |
|
405 |
sub setup_language { |
|
406 |
my ($self) = @_; |
|
407 |
|
|
408 |
$self->{numberformats} = [ '1,000.00', '1000.00', '1.000,00', '1000,00', "1'000.00" ]; |
|
409 |
$self->{dateformats} = [ qw(mm/dd/yy dd/mm/yy dd.mm.yy yyyy-mm-dd) ]; |
|
410 |
} |
|
411 |
|
|
387 | 412 |
1; |
388 | 413 |
|
389 | 414 |
__END__ |
Auch abrufbar als: Unified diff
SimpleSystemSetting: Umstellung von »Sprachen«