Revision c25824ca
Von Tamino Steinert vor 11 Monaten hinzugefügt
SL/Presenter/Part.pm | ||
---|---|---|
64 | 64 |
sub type_abbreviation { |
65 | 65 |
my ($part_type) = @_; |
66 | 66 |
|
67 |
return '' if !$part_type; |
|
68 |
return $::locale->text('Assembly (typeabbreviation)') if $part_type eq 'assembly'; |
|
69 |
return $::locale->text('Part (typeabbreviation)') if $part_type eq 'part'; |
|
70 |
return $::locale->text('Assortment (typeabbreviation)') if $part_type eq 'assortment'; |
|
71 |
return $::locale->text('Service (typeabbreviation)'); |
|
67 |
my %part_type_abbr = ( |
|
68 |
part => t8('Part (typeabbreviation)'), |
|
69 |
assembly => t8('Assembly (typeabbreviation)'), |
|
70 |
assortment => t8('Assortment (typeabbreviation)'), |
|
71 |
service => t8('Service (typeabbreviation)'), |
|
72 |
parent_variant => t8('Parent Variant (typeabbreviation)'), |
|
73 |
variant => t8('Variant (typeabbreviation)'), |
|
74 |
); |
|
75 |
|
|
76 |
return $part_type_abbr{$part_type} || ''; |
|
72 | 77 |
} |
73 | 78 |
|
74 | 79 |
# |
Auch abrufbar als: Unified diff
Varianten: Varianten Eigenschaften im Namen anzeigen