Skip to content

Commit

Permalink
Issue #3958: Implement simple translation into DF ticket reference Ob…
Browse files Browse the repository at this point in the history
…jectDescriptionGet.
  • Loading branch information
stefanhaerter committed Nov 28, 2024
1 parent 0539a8f commit 6243553
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Kernel/System/DynamicField/Driver/Ticket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ sub ObjectDescriptionGet {
# prepare string as configured
my $DisplayType = $Param{DynamicFieldConfig}{Config}{DisplayType};
if ( $DisplayType eq 'TicketNumber' ) {
my $TicketStrg = 'Ticket';
if ( $Param{LayoutObject} ) {
$TicketStrg = $Param{LayoutObject}->{LanguageObject}->Translate($TicketStrg);
}
$Descriptions{Normal} = "Ticket#$Ticket{TicketNumber}";
$Descriptions{Long} = "Ticket#$Ticket{TicketNumber}";
}
Expand Down

0 comments on commit 6243553

Please sign in to comment.