Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b48877c9

Von Sven Schöling vor fast 2 Jahren hinzugefügt

  • ID b48877c9b5a3bed101c2c5f016c64d786fe5abf9
  • Vorgänger 0a798196
  • Nachfolger 0923ae5d

CVar: Übersetzung der CVar module in den Presenter verschoben

Unterschiede anzeigen:

SL/Controller/CustomVariableConfig.pm
11 11
use SL::DB::PartsGroup;
12 12
use SL::Helper::Flash;
13 13
use SL::Locale::String;
14
use SL::Presenter::CustomVariableConfig;
14 15
use Data::Dumper;
15 16

  
16 17
use Rose::Object::MakeMethods::Generic (
......
38 39

  
39 40
our @types = qw(text textfield htmlfield number date bool select customer vendor part); # timestamp
40 41

  
42
our @modules = qw(CT Contacts IC Projects RequirementSpecs ShipTo);
43

  
41 44
#
42 45
# actions
43 46
#
......
161 164
sub init_modules {
162 165
  my ($self, %params) = @_;
163 166

  
164
  return [ sort { $a->{description}->translated cmp $b->{description}->translated } (
165
    { module => 'CT',               description => t8('Customers and vendors')          },
166
    { module => 'Contacts',         description => t8('Contact persons')                },
167
    { module => 'IC',               description => t8('Parts, services and assemblies') },
168
    { module => 'Projects',         description => t8('Projects')                       },
169
    { module => 'RequirementSpecs', description => t8('Requirement Specs')              },
170
    { module => 'ShipTo',           description => t8('Shipping Address')               },
167
  return [
168
    sort { $a->{description}->translated cmp $b->{description}->translated } (
169
    map +{ module => $_, description => $SL::Presenter::CustomVariableConfig::t8{$_} },
170
    @modules
171 171
  )];
172 172
}
173 173

  

Auch abrufbar als: Unified diff