Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3e50ade5

Von Tamino Steinert vor 6 Tagen hinzugefügt

  • ID 3e50ade52369f6e2ad92665828799e9529bdf387
  • Vorgänger 65c0626e
  • Nachfolger 02fff93e

Varianten: Varianten Eigenschaften im Namen anzeigen

Unterschiede anzeigen:

SL/Presenter/Part.pm
71 71
sub type_abbreviation {
72 72
  my ($part_type) = @_;
73 73

  
74
  return ''                                               if !$part_type;
75
  return $::locale->text('Assembly (typeabbreviation)')   if $part_type eq 'assembly';
76
  return $::locale->text('Part (typeabbreviation)')       if $part_type eq 'part';
77
  return $::locale->text('Assortment (typeabbreviation)') if $part_type eq 'assortment';
78
  return $::locale->text('Service (typeabbreviation)');
74
  my %part_type_abbr = (
75
    part           => t8('Part (typeabbreviation)'),
76
    assembly       => t8('Assembly (typeabbreviation)'),
77
    assortment     => t8('Assortment (typeabbreviation)'),
78
    service        => t8('Service (typeabbreviation)'),
79
    parent_variant => t8('Parent Variant (typeabbreviation)'),
80
    variant        => t8('Variant (typeabbreviation)'),
81
  );
82

  
83
  return $part_type_abbr{$part_type} || '';
79 84
}
80 85

  
81 86
#

Auch abrufbar als: Unified diff