Skip to content

Commit

Permalink
Merge pull request #3 from hackerman26/feature/fix-translation-error
Browse files Browse the repository at this point in the history
Only translate label if it starts with 'LLL'
  • Loading branch information
jackd248 authored Oct 19, 2024
2 parents 3047258 + a8c415e commit d698170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Domain/Model/Dto/ListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public function getType(): string|null
if (isset($CTypeLabels[$cType])) {
$label = $CTypeLabels[$cType];
}
return LocalizationUtility::translate($label);

return str_starts_with($label, 'LLL') ? LocalizationUtility::translate($label) : $label;
}

public function getTitle(): string
Expand Down

0 comments on commit d698170

Please sign in to comment.