extension_builder icon indicating copy to clipboard operation
extension_builder copied to clipboard

ucwords() for field-descriptions is wrong

Open DavidBruchmann opened this issue 1 year ago • 0 comments

Describe the bug Field descriptions are parsed all by ucwords() and are entered in the language files like this.

To Reproduce Steps to reproduce the behavior:

  1. Create some field(s)
  2. Enter a description with lower case words.
  3. Save
  4. See the fault in the produced extension in the backend or just look in the language files

Expected behavior That the case of words is kept like written in the extension builder.

Screenshots If applicable, add screenshots to help explain your problem.

TYPO3 Version

Extension Builder Version: v11

Additional context The fault is in LocalizationService:

$labelArray[$property->getDescriptionNamespace()] = Inflector::humanize($property->getDescription());

This shoukld just be

$labelArray[$property->getDescriptionNamespace()] = $property->getDescription();

DavidBruchmann avatar Jul 30 '24 14:07 DavidBruchmann