X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FSimpleSystemSetting.pm;h=5fb9751626a0276f4d463239438c615f22e62a3c;hb=a6ce2c7f3f7ae10f7065fb86121c8d11049617ee;hp=de0feb073d7b8b3694cc90e49822fc485285082a;hpb=459574b971b01d2cc88c5d4cbe1ad14c11b19ec7;p=kivitendo-erp.git diff --git a/SL/Controller/SimpleSystemSetting.pm b/SL/Controller/SimpleSystemSetting.pm index de0feb073..5fb975162 100644 --- a/SL/Controller/SimpleSystemSetting.pm +++ b/SL/Controller/SimpleSystemSetting.pm @@ -64,6 +64,24 @@ my %supported_types = ( }, }, + language => { + # Make locales.pl happy: $self->render("simple_system_setting/_language_form") + class => 'Language', + titles => { + list => t8('Languages'), + add => t8('Add language'), + edit => t8('Edit language'), + }, + list_attributes => [ + { method => 'description', title => t8('Description'), }, + { method => 'template_code', title => t8('Template Code'), }, + { method => 'article_code', title => t8('Article Code'), }, + { title => t8('Number Format'), formatter => sub { $_[0]->output_numberformat || t8('use program settings') } }, + { title => t8('Date Format'), formatter => sub { $_[0]->output_dateformat || t8('use program settings') } }, + { title => t8('Long Dates'), formatter => sub { $_[0]->output_longdates ? t8('yes') : t8('no') } }, + ], + }, + part_classification => { # Make locales.pl happy: $self->render("simple_system_setting/_part_classification_form") class => 'PartClassification', @@ -384,6 +402,13 @@ sub setup_requirement_spec_status { $self->{valid_names} = \@SL::DB::RequirementSpecStatus::valid_names; } +sub setup_language { + my ($self) = @_; + + $self->{numberformats} = [ '1,000.00', '1000.00', '1.000,00', '1000,00', "1'000.00" ]; + $self->{dateformats} = [ qw(mm/dd/yy dd/mm/yy dd.mm.yy yyyy-mm-dd) ]; +} + 1; __END__