Skip to content

ucwords() for field-descriptions is wrong #796

@DavidBruchmann

Description

@DavidBruchmann

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions